mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
35 lines
918 B
Nix
35 lines
918 B
Nix
{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages
|
|
, altcoinSupport ? false }:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "btcpayserver";
|
|
version = "1.4.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Qz4BNrhK+NPnKBgjXGYl4P2R878LCuMGZxLECawA12E=";
|
|
};
|
|
|
|
projectFile = "BTCPayServer/BTCPayServer.csproj";
|
|
nugetDeps = ./deps.nix;
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
|
|
|
|
buildType = if altcoinSupport then "Altcoins-Release" else "Release";
|
|
|
|
postFixup = ''
|
|
mv $out/bin/{BTCPayServer,btcpayserver}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Self-hosted, open-source cryptocurrency payment processor";
|
|
homepage = "https://btcpayserver.org";
|
|
maintainers = with maintainers; [ kcalvinalvin earvstedt ];
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|