diff --git a/packages/hello/default.nix b/packages/hello/default.nix index f3b8f7a..680a432 100644 --- a/packages/hello/default.nix +++ b/packages/hello/default.nix @@ -13,6 +13,7 @@ stdenv, fetchurl, nixos, + callPackage, testers, versionCheckHook, hello, diff --git a/packages/hello/test.nix b/packages/hello/test.nix new file mode 100644 index 0000000..25a81b2 --- /dev/null +++ b/packages/hello/test.nix @@ -0,0 +1,8 @@ +{ runCommand, hello }: + +runCommand "hello-test-run" { + nativeBuildInputs = [ hello ]; +} '' + diff -U3 --color=auto <(hello) <(echo 'Hello, world!') + touch $out +'' \ No newline at end of file