-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdefault.nix
52 lines (45 loc) · 1.04 KB
/
default.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
sources ? import ./npins,
system ? builtins.currentSystem,
}:
let
inherit (lib.home-damager) pkgs;
lib.home-damager = import ./lib.nix {
inherit system;
inherit (sources) home-manager;
};
inherit ((import sources.lazy-drv { inherit pkgs system; }).lib) lazy-drv;
test = pkgs.callPackage ./test.nix { inherit sources; };
lazy = lazy-drv.lazy-run {
nix-build-args = [
"--builders"
''""''
];
source = "${
with pkgs.lib.fileset;
toSource {
root = ./.;
fileset = unions [
./default.nix
./lib.nix
./test.nix
./example.nix
./npins
];
}
}";
attrs = {
inherit test-interactive;
};
};
test-interactive = pkgs.writeShellApplication {
name = "test-interactive";
text = ''exec ${pkgs.lib.getExe test.driverInteractive} "$@"'';
};
in
rec {
shell = pkgs.mkShellNoCC {
packages = (with pkgs; [ npins ]) ++ (with pkgs.lib; collect isDerivation lazy);
};
inherit lib test test-interactive;
}