Add a test for builtins.path in a flake

This commit is contained in:
Eelco Dolstra 2021-10-06 20:53:29 +02:00
parent faeab0d5d5
commit dcb3bc614c

View file

@ -261,6 +261,7 @@ cat > $flake3Dir/flake.nix <<EOF
mkDerivation {
inherit system;
name = "fnord";
dummy = builtins.readFile (builtins.path { name = "source"; path = ./.; filter = path: type: baseNameOf path == "config.nix"; } + "/config.nix");
buildCommand = ''
cat \${inputs.nonFlake}/README.md > \$out
'';