graalvmCEPackages: formatting
This commit is contained in:
parent
820eb1cc8d
commit
248449fbdf
|
@ -18,7 +18,8 @@
|
|||
{ javaVersion
|
||||
, meta ? { }
|
||||
, products ? [ ]
|
||||
, ... } @ args:
|
||||
, ...
|
||||
} @ args:
|
||||
|
||||
let
|
||||
runtimeLibraryPath = lib.makeLibraryPath
|
||||
|
@ -150,4 +151,5 @@ let
|
|||
maintainers = with maintainers; teams.graalvm-ce.members ++ [ ];
|
||||
} // meta);
|
||||
} // (builtins.removeAttrs args [ "javaVersion" "meta" "products" ]));
|
||||
in graalvmXXX-ce
|
||||
in
|
||||
graalvmXXX-ce
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
, graalvmPhases ? { }
|
||||
, meta ? { }
|
||||
, passthru ? { }
|
||||
, ... } @ args:
|
||||
, ...
|
||||
} @ args:
|
||||
|
||||
stdenv.mkDerivation ({
|
||||
pname = "${product}-java${javaVersion}";
|
||||
|
|
|
@ -39,7 +39,8 @@ graalvmCEPackages.buildGraalvmProduct rec {
|
|||
$out/bin/native-image -H:-CheckToolchain -H:+ReportExceptionStackTraces HelloWorld
|
||||
./helloworld | fgrep 'Hello World'
|
||||
|
||||
${lib.optionalString (stdenv.isLinux && !useMusl) ''
|
||||
${# --static is only available in Linux
|
||||
lib.optionalString (stdenv.isLinux && !useMusl) ''
|
||||
echo "Ahead-Of-Time compilation with -H:+StaticExecutableWithDynamicLibC"
|
||||
$out/bin/native-image -H:+StaticExecutableWithDynamicLibC HelloWorld
|
||||
./helloworld | fgrep 'Hello World'
|
||||
|
@ -49,7 +50,8 @@ graalvmCEPackages.buildGraalvmProduct rec {
|
|||
./helloworld | fgrep 'Hello World'
|
||||
''}
|
||||
|
||||
${lib.optionalString (stdenv.isLinux && useMusl) ''
|
||||
${# --static is only available in Linux
|
||||
lib.optionalString (stdenv.isLinux && useMusl) ''
|
||||
echo "Ahead-Of-Time compilation with --static and --libc=musl"
|
||||
$out/bin/native-image --static HelloWorld --libc=musl
|
||||
./helloworld | fgrep 'Hello World'
|
||||
|
|
Loading…
Reference in a new issue