diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/blockchains/wasabiwallet/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/applications/blockchains/wasabiwallet/default.nix | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/blockchains/wasabiwallet/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/blockchains/wasabiwallet/default.nix new file mode 100644 index 000000000000..e566661d36a2 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/blockchains/wasabiwallet/default.nix @@ -0,0 +1,66 @@ +{ stdenv +, fetchurl +, makeDesktopItem +, curl +, dotnet-netcore +, fontconfig +, krb5 +, openssl +, xorg +, zlib +}: + +let + libPath = stdenv.lib.makeLibraryPath [ + curl + dotnet-netcore + fontconfig.lib + krb5 + openssl + stdenv.cc.cc.lib + xorg.libX11 + zlib + ]; +in +stdenv.mkDerivation rec { + pname = "wasabiwallet"; + version = "1.1.12.2"; + + src = fetchurl { + url = "https://github.com/zkSNACKs/WalletWasabi/releases/download/v${version}/Wasabi-${version}.tar.gz"; + sha256 = "0nl7n24nsy3gyzrxa6llx81pvsjqcwi0a4qdv34dpcq483aclp2r"; + }; + + dontBuild = true; + dontPatchELF = true; + + desktopItem = makeDesktopItem { + name = "wasabi"; + exec = "wasabiwallet"; + desktopName = "Wasabi"; + genericName = "Bitcoin wallet"; + comment = meta.description; + categories = "Network;Utility;"; + }; + + 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 + patchelf --set-rpath ${libPath} $i + 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 ]; + }; +} |