nixpkgs-suyu/pkgs/applications/misc/hello/test.nix
2022-05-02 08:49:30 +02:00

8 lines
165 B
Nix

{ runCommand, hello }:
runCommand "hello-test-run" {
nativeBuildInputs = [ hello ];
} ''
diff -U3 --color=auto <(hello) <(echo 'Hello, world!')
touch $out
''