2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-06-18 07:06:33 +00:00
|
|
|
, fetchurl
|
|
|
|
, makeDesktopItem
|
|
|
|
, curl
|
2021-10-17 09:34:42 +00:00
|
|
|
, dotnetCorePackages
|
2020-06-18 07:06:33 +00:00
|
|
|
, fontconfig
|
|
|
|
, krb5
|
|
|
|
, openssl
|
|
|
|
, xorg
|
|
|
|
, zlib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
let
|
2021-10-17 09:34:42 +00:00
|
|
|
dotnet-runtime = dotnetCorePackages.runtime_5_0;
|
2021-01-17 00:15:33 +00:00
|
|
|
libPath = lib.makeLibraryPath [
|
2020-06-18 07:06:33 +00:00
|
|
|
curl
|
2021-10-17 09:34:42 +00:00
|
|
|
dotnet-runtime
|
2020-06-18 07:06:33 +00:00
|
|
|
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";
|
2021-08-25 08:27:29 +00:00
|
|
|
version = "1.1.12.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-09-25 04:45:31 +00:00
|
|
|
url = "https://github.com/zkSNACKs/WalletWasabi/releases/download/v${version}/Wasabi-${version}.tar.gz";
|
2021-08-25 08:27:29 +00:00
|
|
|
sha256 = "sha256-DtoLQbRXyR4xGm+M0xg9uj8wcbh1dOBJUG430OS8AS4=";
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Privacy focused Bitcoin wallet";
|
|
|
|
homepage = "https://wasabiwallet.io/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ mmahut ];
|
|
|
|
};
|
|
|
|
}
|