3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/openjdk/jre_minimal_test1.nix

17 lines
233 B
Nix
Raw Normal View History

2021-04-28 16:19:19 +01:00
{ 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
''