about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/graalvm/community-edition.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/graalvm/community-edition.nix')
-rw-r--r--nixpkgs/pkgs/development/compilers/graalvm/community-edition.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/development/compilers/graalvm/community-edition.nix b/nixpkgs/pkgs/development/compilers/graalvm/community-edition.nix
index 0d12d5fe2dfb..8669b57dcca2 100644
--- a/nixpkgs/pkgs/development/compilers/graalvm/community-edition.nix
+++ b/nixpkgs/pkgs/development/compilers/graalvm/community-edition.nix
@@ -180,7 +180,10 @@ let
             rm $out/jre/lib/jvmci/parentClassLoader.classpath
           '';
           "11-darwin-amd64" = ''
-            echo ""
+            # BUG workaround http://mail.openjdk.java.net/pipermail/graal-dev/2017-December/005141.html
+            substituteInPlace $out/conf/security/java.security \
+              --replace file:/dev/random    file:/dev/./urandom \
+              --replace NativePRNGBlocking  SHA1PRNG
           '';
         }.${javaVersionPlatform};
 
@@ -259,7 +262,8 @@ let
           ''}
 
           echo '1 + 1' | $out/bin/node -i
-        ${lib.optionalString (javaVersion == "11") ''
+        ${lib.optionalString (javaVersion == "11" && stdenv.isLinux) ''
+          # Doesn't work on MacOS, we have this error: "Launching JShell execution engine threw: Operation not permitted (Bind failed)"
           echo '1 + 1' | $out/bin/jshell
         ''}'';
 
@@ -269,7 +273,7 @@ let
           homepage = "https://www.graalvm.org/";
           description = "High-Performance Polyglot VM";
           license = with licenses; [ upl gpl2Classpath bsd3 ];
-          maintainers = with maintainers; [ bandresen volth hlolli glittershark ];
+          maintainers = with maintainers; [ bandresen volth hlolli glittershark babariviere ];
           platforms = [ "x86_64-linux" "x86_64-darwin" ];
         };
       };