3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #211889 from urandom2/signal-desktop0

This commit is contained in:
Sandro 2023-01-21 18:56:18 +01:00 committed by GitHub
commit e86eaaf925
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -6,7 +6,8 @@
};
signal-desktop-beta = {
dir = "Signal Beta";
version = "6.2.0-beta.2";
hash = "sha256-NVwX2xG8QGVjENy6fSA13WQyTlYuF5frcS3asDDg4Ik=";
ringrtcPrefix = "@signalapp/";
version = "6.3.0-beta.1";
hash = "sha256-cYJWhnyiWULnIZvI2/k1koLCd2zrL4CVMohcnSZa/TY=";
};
}

View file

@ -1,5 +1,6 @@
{ pname
, dir
, ringrtcPrefix ? ""
, version
, hash
, stdenv
@ -160,7 +161,7 @@ stdenv.mkDerivation rec {
--replace "/opt/${dir}/${pname}" $out/bin/${pname}
autoPatchelf --no-recurse -- "$out/lib/${dir}/"
patchelf --add-needed ${libpulseaudio}/lib/libpulse.so "$out/lib/${dir}/resources/app.asar.unpacked/node_modules/ringrtc/build/linux/libringrtc-x64.node"
patchelf --add-needed ${libpulseaudio}/lib/libpulse.so "$out/lib/${dir}/resources/app.asar.unpacked/node_modules/${ringrtcPrefix}ringrtc/build/linux/libringrtc-x64.node"
'';
# Tests if the application launches and waits for "Link your phone to Signal Desktop":