nixpkgs/pkgs/by-name/wa/wasabibackend/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

55 lines
1.2 KiB
Nix

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