2020-06-18 07:06:33 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, makeDesktopItem
|
|
|
|
, curl
|
|
|
|
, dotnet-netcore
|
|
|
|
, fontconfig
|
|
|
|
, krb5
|
|
|
|
, openssl
|
|
|
|
, xorg
|
|
|
|
, zlib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
let
|
|
|
|
libPath = stdenv.lib.makeLibraryPath [
|
|
|
|
curl
|
|
|
|
dotnet-netcore
|
|
|
|
fontconfig.lib
|
|
|
|
krb5
|
|
|
|
openssl
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
xorg.libX11
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wasabiwallet";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "1.1.11.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/zkSNACKs/WalletWasabi/releases/download/v${version}/WasabiLinux-${version}.tar.gz";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "04v8f2h67aqvcb5a8vmzbp2sqnq7g4m0v1ng52ccb4ii668ya8hy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "wasabi";
|
|
|
|
exec = "wasabiwallet";
|
|
|
|
desktopName = "Wasabi";
|
|
|
|
genericName = "Bitcoin wallet";
|
|
|
|
comment = meta.description;
|
2020-07-18 16:06:22 +00:00
|
|
|
categories = "Network;Utility;";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
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
|
2020-06-18 07:06:33 +00:00
|
|
|
patchelf --set-rpath ${libPath} $i
|
2020-04-24 23:36:52 +00: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Privacy focused Bitcoin wallet";
|
|
|
|
homepage = "https://wasabiwallet.io/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ mmahut ];
|
|
|
|
};
|
|
|
|
}
|