Skip to content

Commit

Permalink
Merge pull request #201806 from duxovni/briar-desktop-0.3.1-beta
Browse files Browse the repository at this point in the history
briar-desktop: 0.2.1-beta -> 0.3.1-beta
  • Loading branch information
onny authored Nov 26, 2022
2 parents 2f425ee + c2cf2b7 commit dd085c6
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ lib
, stdenv
, fetchzip
, fetchurl
, openjdk
, libnotify
, makeWrapper
, tor
, p7zip
Expand All @@ -18,24 +19,28 @@ let
in
stdenv.mkDerivation rec {
pname = "briar-desktop";
version = "0.2.1-beta";
version = "0.3.1-beta";

src = fetchzip {
url = "https://code.briarproject.org/briar/briar-desktop/-/jobs/18424/artifacts/download?file_type=archive";
sha256 = "sha256-ivMbgo0+iZE4/Iffq9HUBErGIQMVLrRZUQ6R3V3X8II=";
extension = "zip";
src = fetchurl {
url = "https://desktop.briarproject.org/jars/linux/0.3.1-beta/briar-desktop-linux-0.3.1-beta.jar";
sha256 = "841dc198101e6e8aa6b5ab6bd6b80e9c6b2593cb88bc3b2592f947baf963389d";
};

dontUnpack = true;

nativeBuildInputs = [
makeWrapper
p7zip
];

installPhase = ''
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 \
--add-flags "-jar $out/lib/briar-desktop.jar"
--add-flags "-jar $out/lib/briar-desktop.jar" \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [
libnotify
]}"
'';

fixupPhase = ''
Expand Down

0 comments on commit dd085c6

Please sign in to comment.