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

35 lines
918 B
Nix
Raw Normal View History

2021-10-19 16:02:53 +00:00
{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages
, altcoinSupport ? false }:
2020-08-10 18:52:53 +00:00
2021-10-19 16:02:53 +00:00
buildDotnetModule rec {
2020-08-10 18:52:53 +00:00
pname = "btcpayserver";
2022-02-08 12:50:36 +00:00
version = "1.4.4";
2020-08-10 18:52:53 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2022-02-08 12:50:36 +00:00
sha256 = "sha256-PW5a1Bw21skpboWDtlZHGWtFwfImznD7nYI92RT7GGQ=";
2020-08-10 18:52:53 +00:00
};
2021-10-19 16:02:53 +00:00
projectFile = "BTCPayServer/BTCPayServer.csproj";
nugetDeps = ./deps.nix;
2020-08-10 18:52:53 +00:00
2022-02-01 14:25:52 +00:00
dotnet-sdk = dotnetCorePackages.sdk_6_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
2020-08-10 18:52:53 +00:00
2022-02-01 14:25:52 +00:00
buildType = if altcoinSupport then "Altcoins-Release" else "Release";
2020-08-10 18:52:53 +00:00
postFixup = ''
2021-10-19 16:02:53 +00:00
mv $out/bin/{BTCPayServer,btcpayserver}
'';
2020-08-10 18:52:53 +00:00
meta = with lib; {
description = "Self-hosted, open-source cryptocurrency payment processor";
homepage = "https://btcpayserver.org";
maintainers = with maintainers; [ kcalvinalvin earvstedt ];
2021-10-19 16:02:53 +00:00
license = licenses.mit;
platforms = platforms.linux;
2020-08-10 18:52:53 +00:00
};
}