mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
17 lines
463 B
Nix
17 lines
463 B
Nix
{ system ? builtins.currentSystem }:
|
|
|
|
with import ../lib/testing.nix { inherit system; };
|
|
|
|
let
|
|
output = runInMachine {
|
|
drv = pkgs.hello;
|
|
machine = { ... }: { /* services.sshd.enable = true; */ };
|
|
};
|
|
in pkgs.runCommand "verify-output" { inherit output; } ''
|
|
if [ ! -e "$output/bin/hello" ]; then
|
|
echo "Derivation built using runInMachine produced incorrect output:" >&2
|
|
ls -laR "$output" >&2
|
|
exit 1
|
|
fi
|
|
"$output/bin/hello" > "$out"
|
|
''
|