mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
cb2cfba6f7
Notably: - remove explicit arguments that match the defaults - convert everything to the right Nix types
68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, makeDesktopItem
|
|
, curl
|
|
, dotnetCorePackages
|
|
, fontconfig
|
|
, krb5
|
|
, openssl
|
|
, xorg
|
|
, zlib
|
|
}:
|
|
|
|
let
|
|
dotnet-runtime = dotnetCorePackages.runtime_5_0;
|
|
libPath = lib.makeLibraryPath [
|
|
curl
|
|
dotnet-runtime
|
|
fontconfig.lib
|
|
krb5
|
|
openssl
|
|
stdenv.cc.cc.lib
|
|
xorg.libX11
|
|
zlib
|
|
];
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "wasabiwallet";
|
|
version = "1.1.12.9";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/zkSNACKs/WalletWasabi/releases/download/v${version}/Wasabi-${version}.tar.gz";
|
|
sha256 = "sha256-DtoLQbRXyR4xGm+M0xg9uj8wcbh1dOBJUG430OS8AS4=";
|
|
};
|
|
|
|
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 lib; {
|
|
description = "Privacy focused Bitcoin wallet";
|
|
homepage = "https://wasabiwallet.io/";
|
|
license = licenses.mit;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ mmahut ];
|
|
};
|
|
}
|