2021-10-28 06:52:43 +00:00
|
|
|
{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages
|
|
|
|
, altcoinSupport ? false }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
buildDotnetModule rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
pname = "btcpayserver";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "1.5.4";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-8GMk7xBMhml0X/8YRuN3FsEF2TWDxtb0eoP/cduKXNg=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
projectFile = "BTCPayServer/BTCPayServer.csproj";
|
|
|
|
nugetDeps = ./deps.nix;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
buildType = if altcoinSupport then "Altcoins-Release" else "Release";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
postFixup = ''
|
2021-10-28 06:52:43 +00:00
|
|
|
mv $out/bin/{BTCPayServer,btcpayserver}
|
|
|
|
'';
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Self-hosted, open-source cryptocurrency payment processor";
|
|
|
|
homepage = "https://btcpayserver.org";
|
|
|
|
maintainers = with maintainers; [ kcalvinalvin earvstedt ];
|
2021-10-28 06:52:43 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|