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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.0 KiB
Nix
Raw Normal View History

2022-07-08 23:02:07 +00:00
{ lib
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
2021-10-19 16:02:53 +00:00
, 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";
2024-04-18 11:11:45 +00:00
version = "1.13.1";
2020-08-10 18:52:53 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2024-04-18 11:11:45 +00:00
sha256 = "sha256-p0GNwwbhsgChlSlPVD/RHhzWF/1URdYp/iYQmJxORU8=";
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
2024-02-08 20:31:56 +00:00
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_8_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
2022-07-08 23:02:07 +00:00
# macOS has a case-insensitive filesystem, so these two can be the same file
postFixup = ''
2022-07-08 23:02:07 +00:00
mv $out/bin/{BTCPayServer,btcpayserver} || :
2021-10-19 16:02:53 +00:00
'';
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 erikarvstedt ];
2021-10-19 16:02:53 +00:00
license = licenses.mit;
2022-07-08 23:02:07 +00:00
platforms = platforms.linux ++ platforms.darwin;
2020-08-10 18:52:53 +00:00
};
}