depot/third_party/nixpkgs/pkgs/applications/blockchains/btcpayserver/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

37 lines
985 B
Nix

{ lib
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, altcoinSupport ? false }:
buildDotnetModule rec {
pname = "btcpayserver";
version = "1.6.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-790/XBeFS1iM73WuBMXcEoB3gjBlU1dMPRwtQNB7taE=";
};
projectFile = "BTCPayServer/BTCPayServer.csproj";
nugetDeps = ./deps.nix;
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
buildType = if altcoinSupport then "Altcoins-Release" else "Release";
# macOS has a case-insensitive filesystem, so these two can be the same file
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 erikarvstedt ];
license = licenses.mit;
platforms = platforms.linux ++ platforms.darwin;
};
}