briar-desktop: 0.2.1-beta -> 0.3.1-beta

briar-desktop 0.2.1-beta has expired and will no longer
run. briar-desktop 0.3.1-beta also adds functionality such as
notifications.
This commit is contained in:
Faye Duxovni 2022-11-18 15:09:12 -05:00
parent 80fc321968
commit c2cf2b76ff

View File

@ -1,7 +1,8 @@
{ lib { lib
, stdenv , stdenv
, fetchzip , fetchurl
, openjdk , openjdk
, libnotify
, makeWrapper , makeWrapper
, tor , tor
, p7zip , p7zip
@ -18,14 +19,15 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "briar-desktop"; pname = "briar-desktop";
version = "0.2.1-beta"; version = "0.3.1-beta";
src = fetchzip { src = fetchurl {
url = "https://code.briarproject.org/briar/briar-desktop/-/jobs/18424/artifacts/download?file_type=archive"; url = "https://desktop.briarproject.org/jars/linux/0.3.1-beta/briar-desktop-linux-0.3.1-beta.jar";
sha256 = "sha256-ivMbgo0+iZE4/Iffq9HUBErGIQMVLrRZUQ6R3V3X8II="; sha256 = "841dc198101e6e8aa6b5ab6bd6b80e9c6b2593cb88bc3b2592f947baf963389d";
extension = "zip";
}; };
dontUnpack = true;
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper makeWrapper
p7zip p7zip
@ -33,9 +35,12 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
mkdir -p $out/{bin,lib} mkdir -p $out/{bin,lib}
cp ${src}/briar-desktop.jar $out/lib/ cp ${src} $out/lib/briar-desktop.jar
makeWrapper ${openjdk}/bin/java $out/bin/briar-desktop \ makeWrapper ${openjdk}/bin/java $out/bin/briar-desktop \
--add-flags "-jar $out/lib/briar-desktop.jar" --add-flags "-jar $out/lib/briar-desktop.jar" \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [
libnotify
]}"
''; '';
fixupPhase = '' fixupPhase = ''