add missing file and callpackage as import

This commit is contained in:
Andreas Schaafsma 2024-11-13 01:54:31 +01:00
parent 830f8d51b3
commit da2b430ead
2 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,7 @@
stdenv,
fetchurl,
nixos,
callPackage,
testers,
versionCheckHook,
hello,

8
packages/hello/test.nix Normal file
View File

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