From da2b430ead56f917c10cac1eec6495803880193d Mon Sep 17 00:00:00 2001 From: Andreas Schaafsma Date: Wed, 13 Nov 2024 01:54:31 +0100 Subject: [PATCH] add missing file and callpackage as import --- packages/hello/default.nix | 1 + packages/hello/test.nix | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 packages/hello/test.nix 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