mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
Allow builtins.{path,filterSource} on paths with a context
We now build the context (so this has the side-effect of making builtins.{path,filterSource} work on derivations outputs, if IFD is enabled) and then check that the path has no references (which is what we really care about).
This commit is contained in:
parent
66c4b20d8b
commit
4806f2f6b0
2 changed files with 43 additions and 20 deletions
|
@ -262,6 +262,7 @@ cat > $flake3Dir/flake.nix <<EOF
|
|||
inherit system;
|
||||
name = "fnord";
|
||||
dummy = builtins.readFile (builtins.path { name = "source"; path = ./.; filter = path: type: baseNameOf path == "config.nix"; } + "/config.nix");
|
||||
dummy2 = builtins.readFile (builtins.path { name = "source"; path = inputs.flake1; filter = path: type: baseNameOf path == "simple.nix"; } + "/simple.nix");
|
||||
buildCommand = ''
|
||||
cat \${inputs.nonFlake}/README.md > \$out
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue