btcpayserver: enable build on darwin

This commit is contained in:
Pavol Rusnak 2022-07-09 01:02:07 +02:00 committed by Erik Arvstedt
parent b45e4a004e
commit 79aebd3e05
No known key found for this signature in database
GPG key ID: 33312B944DD97846
2 changed files with 15 additions and 6 deletions

View file

@ -1,4 +1,7 @@
{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages
{ lib
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, altcoinSupport ? false }:
buildDotnetModule rec {
@ -19,8 +22,9 @@ buildDotnetModule rec {
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}
mv $out/bin/{BTCPayServer,btcpayserver} || :
'';
meta = with lib; {
@ -28,6 +32,6 @@ buildDotnetModule rec {
homepage = "https://btcpayserver.org";
maintainers = with maintainers; [ kcalvinalvin erikarvstedt ];
license = licenses.mit;
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}

View file

@ -1,4 +1,8 @@
{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages }:
{ lib
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
}:
buildDotnetModule rec {
pname = "nbxplorer";
@ -16,14 +20,15 @@ buildDotnetModule rec {
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
# macOS has a case-insensitive filesystem, so these two can be the same file
postFixup = ''
mv $out/bin/{NBXplorer,nbxplorer}
mv $out/bin/{NBXplorer,nbxplorer} || :
'';
meta = with lib; {
description = "Minimalist UTXO tracker for HD Cryptocurrency Wallets";
maintainers = with maintainers; [ kcalvinalvin erikarvstedt ];
license = licenses.mit;
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}