mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
17 lines
229 B
Nix
17 lines
229 B
Nix
{ runCommand
|
|
, callPackage
|
|
, jdk
|
|
, jre_minimal
|
|
}:
|
|
|
|
let
|
|
hello = callPackage ./hello.nix {
|
|
jdk = jdk;
|
|
jre = jre_minimal;
|
|
};
|
|
in
|
|
runCommand "test" {} ''
|
|
${hello}/bin/hello | grep "Hello, world!"
|
|
touch $out
|
|
''
|