mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
Merge pull request #111513 from devzero/master
signal-cli: 0.6.12 -> 0.7.4
This commit is contained in:
commit
5b896d3797
@ -1,13 +1,13 @@
|
||||
{ stdenv, lib, fetchurl, makeWrapper, jre_headless, libmatthew_java, dbus, dbus_java }:
|
||||
{ stdenv, lib, fetchurl, makeWrapper, openjdk11_headless, libmatthew_java, dbus, dbus_java }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "signal-cli";
|
||||
version = "0.6.12";
|
||||
version = "0.7.4";
|
||||
|
||||
# Building from source would be preferred, but is much more involved.
|
||||
src = fetchurl {
|
||||
url = "https://github.com/AsamK/signal-cli/releases/download/v${version}/signal-cli-${version}.tar.gz";
|
||||
sha256 = "0i1y2p5qi2bwhkm8sv0wkb0lfi2vm26qalnpg6kn0ikcxkqkq5bc";
|
||||
sha256 = "18dv2944nsryl6372jqgb52z3s1grvgfc5sb1b1rgn0y84g8g46n";
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals stdenv.isLinux [ libmatthew_java dbus dbus_java ];
|
||||
@ -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 New Issue
Block a user