-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathflake.nix
34 lines (28 loc) · 878 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
description = "Ready-made templates for easily creating flake-driven environments";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }: {
overlay = final: prev:
let scripts = prev.callPackage ./scripts.nix { }; in
{
inherit (scripts) format update test-develop dvt;
};
templates = import ./templates.nix;
} // utils.lib.eachDefaultSystem (system:
let
overlays = [ (self.overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
in
{
devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ format update ]; };
packages = {
dvt-init = pkgs.dvt;
dvt-format = pkgs.format;
dvt-update = pkgs.update;
inherit (pkgs) test-develop;
};
});
}