Files
nixpkgs/pkgs/by-name/wa/wasabiwallet/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

83 lines
2.0 KiB
Nix

{
lib,
stdenv,
autoPatchelfHook,
makeWrapper,
fetchurl,
makeDesktopItem,
lttng-ust_2_12,
fontconfig,
openssl,
xorg,
zlib,
}:
let
# These libraries are dynamically loaded by the application,
# and need to be present in LD_LIBRARY_PATH
runtimeLibs = [
fontconfig.lib
openssl
(lib.getLib stdenv.cc.cc)
xorg.libX11
xorg.libICE
xorg.libSM
zlib
];
in
stdenv.mkDerivation rec {
pname = "wasabiwallet";
version = "2.7.0";
src = fetchurl {
url = "https://github.com/WalletWasabi/WalletWasabi/releases/download/v${version}/Wasabi-${version}-linux-x64.tar.gz";
sha256 = "sha256-w2xLahVxeCxwM6LVS5Mtr7IAXoZ7ju9aeXGjHMO2GPE=";
};
dontBuild = true;
desktopItem = makeDesktopItem {
name = "wasabi";
exec = "wasabiwallet-desktop";
desktopName = "Wasabi";
genericName = "Bitcoin wallet";
comment = meta.description;
categories = [
"Network"
"Utility"
];
};
nativeBuildInputs = [
autoPatchelfHook
makeWrapper
];
buildInputs = runtimeLibs ++ [
lttng-ust_2_12
];
installPhase = ''
mkdir -p $out/opt/${pname} $out/bin $out/share/applications
# The weird path is an upstream packaging error and could be fixed in the upcoming release
cp -Rv ./runner/work/WalletWasabi/WalletWasabi/build/linux-x64/* $out/opt/${pname}
for nameMap in "wassabee:desktop" "wassabeed:daemon" "wcoordinator:coordinator" "wbackend:backend"; do
IFS=":" read -r filename wrappedname <<< "$nameMap"
makeWrapper "$out/opt/${pname}/$filename" "$out/bin/${pname}-$wrappedname" \
--suffix "LD_LIBRARY_PATH" : "${lib.makeLibraryPath runtimeLibs}"
done
cp -v $desktopItem/share/applications/* $out/share/applications
'';
meta = with lib; {
description = "Privacy focused Bitcoin wallet";
homepage = "https://wasabiwallet.io/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ mmahut ];
};
}