2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2022-11-27 09:42:12 +00:00
|
|
|
, autoPatchelfHook
|
|
|
|
, makeWrapper
|
2020-06-18 07:06:33 +00:00
|
|
|
, fetchurl
|
|
|
|
, makeDesktopItem
|
|
|
|
, curl
|
2021-10-17 09:34:42 +00:00
|
|
|
, dotnetCorePackages
|
2022-11-27 09:42:12 +00:00
|
|
|
, lttng-ust_2_12
|
2020-06-18 07:06:33 +00:00
|
|
|
, fontconfig
|
|
|
|
, krb5
|
|
|
|
, openssl
|
|
|
|
, xorg
|
|
|
|
, zlib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
let
|
2022-11-27 09:42:12 +00:00
|
|
|
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-18 07:06:33 +00:00
|
|
|
curl
|
|
|
|
fontconfig.lib
|
|
|
|
krb5
|
|
|
|
openssl
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
xorg.libX11
|
2022-11-27 09:42:12 +00:00
|
|
|
xorg.libICE
|
|
|
|
xorg.libSM
|
2020-06-18 07:06:33 +00:00
|
|
|
zlib
|
|
|
|
];
|
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wasabiwallet";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "2.0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-09-25 04:45:31 +00:00
|
|
|
url = "https://github.com/zkSNACKs/WalletWasabi/releases/download/v${version}/Wasabi-${version}.tar.gz";
|
2022-11-27 09:42:12 +00:00
|
|
|
sha256 = "sha256-0DFl+UFxQckRM2qXFqDpKaRQ5sIMUbNj7l3zKPKAOnQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "wasabi";
|
|
|
|
exec = "wasabiwallet";
|
|
|
|
desktopName = "Wasabi";
|
|
|
|
genericName = "Bitcoin wallet";
|
|
|
|
comment = meta.description;
|
2022-03-05 16:20:37 +00:00
|
|
|
categories = [ "Network" "Utility" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
|
|
|
|
buildInputs = runtimeLibs ++ [
|
|
|
|
lttng-ust_2_12
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/opt/${pname} $out/bin $out/share/applications
|
|
|
|
cp -Rv . $out/opt/${pname}
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
makeWrapper "${dotnet-runtime}/bin/dotnet" "$out/bin/${pname}" \
|
|
|
|
--add-flags "$out/opt/${pname}/WalletWasabi.Fluent.Desktop.dll" \
|
|
|
|
--suffix "LD_LIBRARY_PATH" : "${lib.makeLibraryPath runtimeLibs}"
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
cp -v $desktopItem/share/applications/* $out/share/applications
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Privacy focused Bitcoin wallet";
|
|
|
|
homepage = "https://wasabiwallet.io/";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ mmahut ];
|
|
|
|
};
|
|
|
|
}
|