depot/third_party/nixpkgs/pkgs/applications/misc/hello/test.nix

9 lines
165 B
Nix
Raw Normal View History

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