graalvmCEPackages: formatting

This commit is contained in:
Thiago Kenji Okada 2023-02-14 17:00:45 +00:00
parent 820eb1cc8d
commit 248449fbdf
3 changed files with 10 additions and 5 deletions

View file

@ -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

View file

@ -14,7 +14,8 @@
, graalvmPhases ? { }
, meta ? { }
, passthru ? { }
, ... } @ args:
, ...
} @ args:
stdenv.mkDerivation ({
pname = "${product}-java${javaVersion}";

View file

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