nixpkgs/pkgs/development/compilers/openjdk/jre_minimal_test1.nix
2021-04-28 21:01:46 +02:00

16 lines
233 B
Nix

{ 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
''