1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

Test RemoteStore::buildDerivation

Fix `wopNarFromPath` which needed a `toRealPath`.
This commit is contained in:
John Ericson 2020-08-12 13:24:39 +00:00
parent 5d67f18c86
commit d2f2be0f70
3 changed files with 30 additions and 7 deletions

View file

@ -26,6 +26,16 @@ let
requiredSystemFeatures = ["bar"];
};
input3 = mkDerivation {
shell = busybox;
name = "build-remote-input-3";
buildCommand = ''
read x < ${input2}
echo $x BAZ > $out
'';
requiredSystemFeatures = ["baz"];
};
in
mkDerivation {
@ -34,7 +44,7 @@ in
buildCommand =
''
read x < ${input1}
read y < ${input2}
read y < ${input3}
echo "$x $y" > $out
'';
}