3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/blockchains/wasabiwallet/default.nix

45 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, makeDesktopItem, openssl, xorg, curl, fontconfig, krb5, zlib, dotnet-netcore }:
2019-06-03 19:12:56 +01:00
stdenv.mkDerivation rec {
pname = "wasabiwallet";
2019-11-17 01:48:34 +00:00
version = "1.1.9.2";
2019-06-03 19:12:56 +01:00
2019-09-07 15:33:30 +01:00
src = fetchurl {
url = "https://github.com/zkSNACKs/WalletWasabi/releases/download/v${version}/WasabiLinux-${version}.tar.gz";
2019-11-17 01:48:34 +00:00
sha256 = "0qcgrw106rqcls6p5iq02sq3w6xrzhc5z7w8v5almbw7ikv6f0s2";
2019-09-07 15:33:30 +01:00
};
2019-06-03 19:12:56 +01:00
2019-09-07 15:33:30 +01:00
dontBuild = true;
dontPatchELF = true;
2019-06-03 19:12:56 +01:00
2019-09-07 15:33:30 +01:00
desktopItem = makeDesktopItem {
name = "wasabi";
exec = "wasabiwallet";
desktopName = "Wasabi";
genericName = "Bitcoin wallet";
comment = meta.description;
categories = "Application;Network;Utility;";
};
2019-06-03 19:12:56 +01:00
installPhase = ''
2019-09-07 15:33:30 +01:00
mkdir -p $out/opt/${pname} $out/bin $out/share/applications
cp -Rv . $out/opt/${pname}
cd $out/opt/${pname}
for i in $(find . -type f -name '*.so') wassabee
do
patchelf --set-rpath ${stdenv.lib.makeLibraryPath [ openssl stdenv.cc.cc.lib xorg.libX11 curl fontconfig.lib krb5 zlib dotnet-netcore ]} $i
2019-09-07 15:33:30 +01:00
done
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" wassabee
ln -s $out/opt/${pname}/wassabee $out/bin/${pname}
cp -v $desktopItem/share/applications/* $out/share/applications
'';
2019-06-03 19:12:56 +01:00
meta = with stdenv.lib; {
description = "Privacy focused Bitcoin wallet";
homepage = "https://wasabiwallet.io/";
license = licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ mmahut ];
};
}