mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
45 lines
1.4 KiB
Nix
45 lines
1.4 KiB
Nix
{ stdenv, fetchurl, makeDesktopItem, openssl, xorg, curl, fontconfig, krb5, zlib, dotnet-sdk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wasabiwallet";
|
|
version = "1.1.9";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/zkSNACKs/WalletWasabi/releases/download/v${version}/WasabiLinux-${version}.tar.gz";
|
|
sha256 = "1dz05ivhadfjfp4yfpz492401yznm3rlnx7g4nqzxwh4cmqzisrm";
|
|
};
|
|
|
|
dontBuild = true;
|
|
dontPatchELF = true;
|
|
|
|
desktopItem = makeDesktopItem {
|
|
name = "wasabi";
|
|
exec = "wasabiwallet";
|
|
desktopName = "Wasabi";
|
|
genericName = "Bitcoin wallet";
|
|
comment = meta.description;
|
|
categories = "Application;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 ${stdenv.lib.makeLibraryPath [ openssl stdenv.cc.cc.lib xorg.libX11 curl fontconfig.lib krb5 zlib dotnet-sdk ]} $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 ];
|
|
};
|
|
}
|