2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-06-03 20:46:43 +01:00
|
|
|
, fetchurl
|
|
|
|
, makeDesktopItem
|
|
|
|
, curl
|
2021-09-26 22:06:38 +01:00
|
|
|
, dotnetCorePackages
|
2020-06-03 20:46:43 +01:00
|
|
|
, fontconfig
|
|
|
|
, krb5
|
|
|
|
, openssl
|
|
|
|
, xorg
|
|
|
|
, zlib
|
|
|
|
}:
|
2019-06-03 19:12:56 +01:00
|
|
|
|
2020-06-03 20:46:43 +01:00
|
|
|
let
|
2021-09-26 22:06:38 +01:00
|
|
|
dotnet-runtime = dotnetCorePackages.runtime_5_0;
|
2021-01-15 13:21:58 +00:00
|
|
|
libPath = lib.makeLibraryPath [
|
2020-06-03 20:46:43 +01:00
|
|
|
curl
|
2021-09-26 22:06:38 +01:00
|
|
|
dotnet-runtime
|
2020-06-03 20:46:43 +01:00
|
|
|
fontconfig.lib
|
|
|
|
krb5
|
|
|
|
openssl
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
xorg.libX11
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
in
|
2019-06-03 19:12:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wasabiwallet";
|
2022-03-24 05:59:14 +00:00
|
|
|
version = "1.1.13.1";
|
2019-06-03 19:12:56 +01:00
|
|
|
|
2019-09-07 15:33:30 +01:00
|
|
|
src = fetchurl {
|
2020-08-25 16:48:37 +01:00
|
|
|
url = "https://github.com/zkSNACKs/WalletWasabi/releases/download/v${version}/Wasabi-${version}.tar.gz";
|
2022-03-24 05:59:14 +00:00
|
|
|
sha256 = "sha256-AtsNbUqEBQx0DPWR2LjNl7pdviYmvkv3bYKNBoeJHbw=";
|
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;
|
2022-02-22 14:56:15 +00:00
|
|
|
categories = [ "Network" "Utility" ];
|
2019-09-07 15:33:30 +01:00
|
|
|
};
|
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
|
2020-06-03 20:46:43 +01:00
|
|
|
patchelf --set-rpath ${libPath} $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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-03 19:12:56 +01:00
|
|
|
description = "Privacy focused Bitcoin wallet";
|
|
|
|
homepage = "https://wasabiwallet.io/";
|
2022-06-04 23:19:25 +01:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2019-06-03 19:12:56 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ mmahut ];
|
|
|
|
};
|
|
|
|
}
|