tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
graalvmCEPackages: formatting
Thiago Kenji Okada
3 years ago
248449fb
820eb1cc
+10
-5
3 changed files
expand all
collapse all
unified
split
pkgs
development
compilers
graalvm
community-edition
buildGraalvm.nix
buildGraalvmProduct.nix
native-image-installable-svm.nix
+4
-2
pkgs/development/compilers/graalvm/community-edition/buildGraalvm.nix
···
18
{ javaVersion
19
, meta ? { }
20
, products ? [ ]
21
-
, ... } @ args:
0
22
23
let
24
runtimeLibraryPath = lib.makeLibraryPath
···
150
maintainers = with maintainers; teams.graalvm-ce.members ++ [ ];
151
} // meta);
152
} // (builtins.removeAttrs args [ "javaVersion" "meta" "products" ]));
153
-
in graalvmXXX-ce
0
···
18
{ javaVersion
19
, meta ? { }
20
, products ? [ ]
21
+
, ...
22
+
} @ args:
23
24
let
25
runtimeLibraryPath = lib.makeLibraryPath
···
151
maintainers = with maintainers; teams.graalvm-ce.members ++ [ ];
152
} // meta);
153
} // (builtins.removeAttrs args [ "javaVersion" "meta" "products" ]));
154
+
in
155
+
graalvmXXX-ce
+2
-1
pkgs/development/compilers/graalvm/community-edition/buildGraalvmProduct.nix
···
14
, graalvmPhases ? { }
15
, meta ? { }
16
, passthru ? { }
17
-
, ... } @ args:
0
18
19
stdenv.mkDerivation ({
20
pname = "${product}-java${javaVersion}";
···
14
, graalvmPhases ? { }
15
, meta ? { }
16
, passthru ? { }
17
+
, ...
18
+
} @ args:
19
20
stdenv.mkDerivation ({
21
pname = "${product}-java${javaVersion}";
+4
-2
pkgs/development/compilers/graalvm/community-edition/native-image-installable-svm.nix
···
39
$out/bin/native-image -H:-CheckToolchain -H:+ReportExceptionStackTraces HelloWorld
40
./helloworld | fgrep 'Hello World'
41
42
-
${lib.optionalString (stdenv.isLinux && !useMusl) ''
0
43
echo "Ahead-Of-Time compilation with -H:+StaticExecutableWithDynamicLibC"
44
$out/bin/native-image -H:+StaticExecutableWithDynamicLibC HelloWorld
45
./helloworld | fgrep 'Hello World'
···
49
./helloworld | fgrep 'Hello World'
50
''}
51
52
-
${lib.optionalString (stdenv.isLinux && useMusl) ''
0
53
echo "Ahead-Of-Time compilation with --static and --libc=musl"
54
$out/bin/native-image --static HelloWorld --libc=musl
55
./helloworld | fgrep 'Hello World'
···
39
$out/bin/native-image -H:-CheckToolchain -H:+ReportExceptionStackTraces HelloWorld
40
./helloworld | fgrep 'Hello World'
41
42
+
${# --static is only available in Linux
43
+
lib.optionalString (stdenv.isLinux && !useMusl) ''
44
echo "Ahead-Of-Time compilation with -H:+StaticExecutableWithDynamicLibC"
45
$out/bin/native-image -H:+StaticExecutableWithDynamicLibC HelloWorld
46
./helloworld | fgrep 'Hello World'
···
50
./helloworld | fgrep 'Hello World'
51
''}
52
53
+
${# --static is only available in Linux
54
+
lib.optionalString (stdenv.isLinux && useMusl) ''
55
echo "Ahead-Of-Time compilation with --static and --libc=musl"
56
$out/bin/native-image --static HelloWorld --libc=musl
57
./helloworld | fgrep 'Hello World'