nixpkgs/pkgs/applications/blockchains/wasabiwallet/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.8 KiB
Nix
Raw Normal View History

{ lib, stdenv
, autoPatchelfHook
, makeWrapper
2020-06-03 19:46:43 +00:00
, fetchurl
, makeDesktopItem
, curl
, dotnetCorePackages
, lttng-ust_2_12
2020-06-03 19:46:43 +00:00
, fontconfig
, krb5
, openssl
, xorg
, zlib
}:
2019-06-03 18:12:56 +00:00
2020-06-03 19:46:43 +00:00
let
dotnet-runtime = dotnetCorePackages.runtime_6_0;
# These libraries are dynamically loaded by the application,
# and need to be present in LD_LIBRARY_PATH
runtimeLibs = [
2020-06-03 19:46:43 +00:00
curl
fontconfig.lib
krb5
openssl
stdenv.cc.cc.lib
xorg.libX11
xorg.libICE
xorg.libSM
2020-06-03 19:46:43 +00:00
zlib
];
in
2019-06-03 18:12:56 +00:00
stdenv.mkDerivation rec {
pname = "wasabiwallet";
2022-07-31 05:50:57 +00:00
version = "2.0.1.3";
2019-06-03 18:12:56 +00:00
2019-09-07 14:33:30 +00:00
src = fetchurl {
2020-08-25 15:48:37 +00:00
url = "https://github.com/zkSNACKs/WalletWasabi/releases/download/v${version}/Wasabi-${version}.tar.gz";
2022-07-31 05:50:57 +00:00
sha256 = "sha256-cATqg/n4/BDQtuCVjHAx3EfMLmlX5EjeQ01gavy/L8o=";
2019-09-07 14:33:30 +00:00
};
2019-06-03 18:12:56 +00:00
2019-09-07 14:33:30 +00:00
dontBuild = true;
2019-06-03 18:12:56 +00:00
2019-09-07 14:33:30 +00:00
desktopItem = makeDesktopItem {
name = "wasabi";
exec = "wasabiwallet";
desktopName = "Wasabi";
genericName = "Bitcoin wallet";
comment = meta.description;
categories = [ "Network" "Utility" ];
2019-09-07 14:33:30 +00:00
};
2019-06-03 18:12:56 +00:00
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
buildInputs = runtimeLibs ++ [
lttng-ust_2_12
];
2019-06-03 18:12:56 +00:00
installPhase = ''
2019-09-07 14:33:30 +00:00
mkdir -p $out/opt/${pname} $out/bin $out/share/applications
cp -Rv . $out/opt/${pname}
makeWrapper "${dotnet-runtime}/bin/dotnet" "$out/bin/${pname}" \
--add-flags "$out/opt/${pname}/WalletWasabi.Fluent.Desktop.dll" \
--suffix "LD_LIBRARY_PATH" : "${lib.makeLibraryPath runtimeLibs}"
2019-09-07 14:33:30 +00:00
cp -v $desktopItem/share/applications/* $out/share/applications
'';
2019-06-03 18:12:56 +00:00
meta = with lib; {
2019-06-03 18:12:56 +00:00
description = "Privacy focused Bitcoin wallet";
homepage = "https://wasabiwallet.io/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2019-06-03 18:12:56 +00:00
license = licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ mmahut ];
};
}