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

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

50 lines
1.1 KiB
Nix
Raw Normal View History

2023-01-07 08:00:11 +00:00
{
lib,
stdenv,
fetchFromGitHub,
buildDotnetModule,
dotnetCorePackages,
zlib,
openssl,
2020-06-18 12:17:16 +00:00
}:
buildDotnetModule rec {
pname = "wasabibackend";
2023-01-07 08:00:11 +00:00
version = "2.0.2.1";
2020-06-18 12:17:16 +00:00
src = fetchFromGitHub {
owner = "zkSNACKs";
repo = "WalletWasabi";
2023-01-07 08:00:11 +00:00
rev = "refs/tags/v${version}";
hash = "sha512-JuCl3SyejzwUd2n8Fy7EdxUuO4bIcGb8yMWZQOhZzsY4fvg9prFOnVZEquxahD0a41MLKHRNA1R2N3NMapcc0A==";
2020-06-18 12:17:16 +00:00
};
projectFile = "WalletWasabi.Backend/WalletWasabi.Backend.csproj";
nugetDeps = ./deps.nix;
2020-06-18 12:17:16 +00:00
2023-01-07 08:00:11 +00:00
dotnet-sdk = dotnetCorePackages.sdk_7_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_7_0;
2020-06-18 12:17:16 +00:00
2023-01-07 08:00:11 +00:00
buildInputs = [stdenv.cc.cc.lib zlib];
2020-06-18 12:17:16 +00:00
2023-01-07 08:00:11 +00:00
runtimeDeps = [openssl zlib];
2020-06-18 12:17:16 +00:00
preConfigure = ''
makeWrapperArgs+=(
--chdir "$out/lib/${pname}"
)
2020-06-18 12:17:16 +00:00
'';
postFixup = ''
mv $out/bin/WalletWasabi.Backend $out/bin/WasabiBackend
2020-06-18 12:17:16 +00:00
'';
meta = with lib; {
2020-06-18 12:17:16 +00:00
description = "Backend for the Wasabi Wallet";
homepage = "https://wasabiwallet.io/";
2023-01-07 08:00:11 +00:00
sourceProvenance = with sourceTypes; [binaryNativeCode];
2020-06-18 12:17:16 +00:00
license = licenses.mit;
2023-01-07 08:00:11 +00:00
maintainers = with maintainers; [mmahut];
platforms = ["x86_64-linux"];
2020-06-18 12:17:16 +00:00
};
}