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

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

73 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, stdenv
, autoPatchelfHook
, makeWrapper
2020-06-03 19:46:43 +00:00
, fetchurl
, makeDesktopItem
, lttng-ust_2_12
2020-06-03 19:46:43 +00:00
, fontconfig
, openssl
, xorg
, zlib
}:
2019-06-03 18:12:56 +00:00
2020-06-03 19:46:43 +00:00
let
# 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
fontconfig.lib
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";
2024-04-23 02:31:21 +00:00
version = "2.0.7.1";
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";
2024-04-23 02:31:21 +00:00
sha256 = "sha256-u/QDdGLdD5+8j3r8pZQwcG3iTToFJEvzzV7Rl4ggvtM=";
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}
2023-08-28 17:29:02 +00:00
makeWrapper "$out/opt/${pname}/wassabee" "$out/bin/${pname}" \
--suffix "LD_LIBRARY_PATH" : "${lib.makeLibraryPath runtimeLibs}"
2023-08-28 17:29:02 +00:00
makeWrapper "$out/opt/${pname}/wassabeed" "$out/bin/${pname}d" \
2023-08-28 16:25:37 +00:00
--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 ];
};
}