1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{ runCommand , callPackage , jdk , jre_minimal }: let hello = callPackage tests/hello.nix { jdk = jdk; jre = jre_minimal; }; in runCommand "test" {} '' ${hello}/bin/hello | grep "Hello, world!" touch $out ''