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