1{ system ? builtins.currentSystem }:
2
3with import ../lib/testing.nix { inherit system; };
4
5let
6 output = runInMachine {
7 drv = pkgs.hello;
8 machine = { ... }: { /* services.sshd.enable = true; */ };
9 };
10in pkgs.runCommand "verify-output" { inherit output; } ''
11 if [ ! -e "$output/bin/hello" ]; then
12 echo "Derivation built using runInMachine produced incorrect output:" >&2
13 ls -laR "$output" >&2
14 exit 1
15 fi
16 "$output/bin/hello" > "$out"
17''