2023-01-20 10:41:00 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildDotnetModule,
|
|
|
|
dotnetCorePackages,
|
|
|
|
autoPatchelfHook,
|
|
|
|
zlib,
|
|
|
|
openssl,
|
2020-06-15 15:56:04 +00:00
|
|
|
}:
|
2022-01-03 16:56:52 +00:00
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "wasabibackend";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "2.0.2.1";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zkSNACKs";
|
|
|
|
repo = "WalletWasabi";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha512-JuCl3SyejzwUd2n8Fy7EdxUuO4bIcGb8yMWZQOhZzsY4fvg9prFOnVZEquxahD0a41MLKHRNA1R2N3NMapcc0A==";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
projectFile = "WalletWasabi.Backend/WalletWasabi.Backend.csproj";
|
|
|
|
nugetDeps = ./deps.nix;
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_7_0;
|
|
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_7_0;
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [autoPatchelfHook];
|
|
|
|
buildInputs = [stdenv.cc.cc.lib zlib];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
runtimeDeps = [openssl zlib];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
preConfigure = ''
|
|
|
|
makeWrapperArgs+=(
|
2022-04-27 09:35:20 +00:00
|
|
|
--chdir "$out/lib/${pname}"
|
2022-01-03 16:56:52 +00:00
|
|
|
)
|
2020-06-15 15:56:04 +00:00
|
|
|
'';
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
postFixup = ''
|
2022-01-03 16:56:52 +00:00
|
|
|
mv $out/bin/WalletWasabi.Backend $out/bin/WasabiBackend
|
2020-06-15 15:56:04 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-15 15:56:04 +00:00
|
|
|
description = "Backend for the Wasabi Wallet";
|
|
|
|
homepage = "https://wasabiwallet.io/";
|
2023-01-20 10:41:00 +00:00
|
|
|
sourceProvenance = with sourceTypes; [binaryNativeCode];
|
2020-06-15 15:56:04 +00:00
|
|
|
license = licenses.mit;
|
2023-01-20 10:41:00 +00:00
|
|
|
maintainers = with maintainers; [mmahut];
|
|
|
|
platforms = ["x86_64-linux"];
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
}
|