a8edf185a9
It contains the Nix expression search path as a list of { prefix, path } sets, e.g. [ { path = "/nix/var/nix/profiles/per-user/root/channels/nixos"; prefix = ""; } { path = "/etc/nixos/configuration.nix"; prefix = "nixos-config"; } { path = "/home/eelco/Dev/nix/inst/share/nix/corepkgs"; prefix = "nix"; } ]
10 lines
308 B
Nix
10 lines
308 B
Nix
with import ./lib.nix;
|
|
with builtins;
|
|
|
|
assert pathExists <nix/buildenv.nix>;
|
|
|
|
assert length nixPath == 3;
|
|
assert length (filter (x: x.prefix == "nix") nixPath) == 1;
|
|
assert length (filter (x: baseNameOf x.path == "dir4") nixPath) == 1;
|
|
|
|
import <a.nix> + import <b.nix> + import <c.nix> + import <dir5/c.nix>
|