btcpayserver: enable build on darwin
This commit is contained in:
parent
b45e4a004e
commit
79aebd3e05
2 changed files with 15 additions and 6 deletions
|
@ -1,4 +1,7 @@
|
||||||
{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages
|
{ lib
|
||||||
|
, buildDotnetModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, dotnetCorePackages
|
||||||
, altcoinSupport ? false }:
|
, altcoinSupport ? false }:
|
||||||
|
|
||||||
buildDotnetModule rec {
|
buildDotnetModule rec {
|
||||||
|
@ -19,8 +22,9 @@ buildDotnetModule rec {
|
||||||
|
|
||||||
buildType = if altcoinSupport then "Altcoins-Release" else "Release";
|
buildType = if altcoinSupport then "Altcoins-Release" else "Release";
|
||||||
|
|
||||||
|
# macOS has a case-insensitive filesystem, so these two can be the same file
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
mv $out/bin/{BTCPayServer,btcpayserver}
|
mv $out/bin/{BTCPayServer,btcpayserver} || :
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -28,6 +32,6 @@ buildDotnetModule rec {
|
||||||
homepage = "https://btcpayserver.org";
|
homepage = "https://btcpayserver.org";
|
||||||
maintainers = with maintainers; [ kcalvinalvin erikarvstedt ];
|
maintainers = with maintainers; [ kcalvinalvin erikarvstedt ];
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages }:
|
{ lib
|
||||||
|
, buildDotnetModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, dotnetCorePackages
|
||||||
|
}:
|
||||||
|
|
||||||
buildDotnetModule rec {
|
buildDotnetModule rec {
|
||||||
pname = "nbxplorer";
|
pname = "nbxplorer";
|
||||||
|
@ -16,14 +20,15 @@ buildDotnetModule rec {
|
||||||
|
|
||||||
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
|
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
|
||||||
|
|
||||||
|
# macOS has a case-insensitive filesystem, so these two can be the same file
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
mv $out/bin/{NBXplorer,nbxplorer}
|
mv $out/bin/{NBXplorer,nbxplorer} || :
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Minimalist UTXO tracker for HD Cryptocurrency Wallets";
|
description = "Minimalist UTXO tracker for HD Cryptocurrency Wallets";
|
||||||
maintainers = with maintainers; [ kcalvinalvin erikarvstedt ];
|
maintainers = with maintainers; [ kcalvinalvin erikarvstedt ];
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue