graalvm-ce: fix irb in Linux
This commit is contained in:
parent
9e8e2eff2d
commit
194c1f6aae
@ -146,8 +146,8 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
rpath="${ { "8" = "$out/jre/lib/amd64/jli:$out/jre/lib/amd64/server:$out/jre/lib/amd64";
|
rpath="${ { "8" = "$out/jre/lib/amd64/jli:$out/jre/lib/amd64/server:$out/jre/lib/amd64:$out/jre/languages/ruby/lib/cext";
|
||||||
"11" = "$out/lib/jli:$out/lib/server:$out/lib";
|
"11" = "$out/lib/jli:$out/lib/server:$out/lib:$out/languages/ruby/lib/cext";
|
||||||
}.${javaVersion}
|
}.${javaVersion}
|
||||||
}:${
|
}:${
|
||||||
lib.makeLibraryPath [
|
lib.makeLibraryPath [
|
||||||
@ -204,11 +204,13 @@ let
|
|||||||
|
|
||||||
echo '1 + 1' | $out/bin/graalpython
|
echo '1 + 1' | $out/bin/graalpython
|
||||||
|
|
||||||
|
${lib.optionalString stdenv.isLinux ''
|
||||||
# TODO: `irb` on MacOS gives an error saying "Could not find OpenSSL
|
# TODO: `irb` on MacOS gives an error saying "Could not find OpenSSL
|
||||||
# headers, install via Homebrew or MacPorts or set OPENSSL_PREFIX", even
|
# headers, install via Homebrew or MacPorts or set OPENSSL_PREFIX", even
|
||||||
# though `openssl` is in `propagatedBuildInputs`. For more details see:
|
# though `openssl` is in `propagatedBuildInputs`. For more details see:
|
||||||
# https://github.com/NixOS/nixpkgs/pull/105815
|
# https://github.com/NixOS/nixpkgs/pull/105815
|
||||||
# echo '1 + 1' | $out/bin/irb
|
echo '1 + 1' | $out/bin/irb
|
||||||
|
''}
|
||||||
|
|
||||||
echo '1 + 1' | $out/bin/node -i
|
echo '1 + 1' | $out/bin/node -i
|
||||||
${lib.optionalString (javaVersion == "11") ''
|
${lib.optionalString (javaVersion == "11") ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user