2014-05-26 12:55:47 +00:00
|
|
|
with import ./lib.nix;
|
|
|
|
with builtins;
|
|
|
|
|
|
|
|
assert pathExists <nix/buildenv.nix>;
|
|
|
|
|
2014-05-26 14:50:36 +00:00
|
|
|
assert length nixPath == 6;
|
2014-05-26 12:55:47 +00:00
|
|
|
assert length (filter (x: x.prefix == "nix") nixPath) == 1;
|
|
|
|
assert length (filter (x: baseNameOf x.path == "dir4") nixPath) == 1;
|
2011-08-06 16:05:24 +00:00
|
|
|
|
2011-08-06 18:23:38 +00:00
|
|
|
import <a.nix> + import <b.nix> + import <c.nix> + import <dir5/c.nix>
|
2014-05-26 15:02:22 +00:00
|
|
|
+ (let nixPath = [ { path = ./dir1; } { path = ./dir2; } ]; in import <a.nix>)
|