mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
adjusted jre_headless references
This commit is contained in:
parent
f8b0db1cfa
commit
989661d13e
|
@ -18,15 +18,15 @@ stdenv.mkDerivation rec {
|
|||
cp -r lib $out/lib
|
||||
cp bin/signal-cli $out/bin/signal-cli
|
||||
'' + (if stdenv.isLinux then ''
|
||||
makeWrapper ${jre_headless}/bin/java $out/bin/signal-cli \
|
||||
--set JAVA_HOME "${jre_headless}" \
|
||||
makeWrapper ${openjdk11_headless}/bin/java $out/bin/signal-cli \
|
||||
--set JAVA_HOME "${openjdk11_headless}" \
|
||||
--add-flags "-classpath '$out/lib/*:${libmatthew_java}/lib/jni'" \
|
||||
--add-flags "-Djava.library.path=${libmatthew_java}/lib/jni:${dbus_java}/share/java/dbus:$out/lib" \
|
||||
--add-flags "org.asamk.signal.Main"
|
||||
'' else ''
|
||||
wrapProgram $out/bin/signal-cli \
|
||||
--prefix PATH : ${lib.makeBinPath [ jre_headless ]} \
|
||||
--set JAVA_HOME ${jre_headless}
|
||||
--prefix PATH : ${lib.makeBinPath [ openjdk11_headless ]} \
|
||||
--set JAVA_HOME ${openjdk11_headless}
|
||||
'');
|
||||
|
||||
# Execution in the macOS (10.13) sandbox fails with
|
||||
|
|
Loading…
Reference in a new issue