diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2022-07-09 01:02:07 +0200 |
---|---|---|
committer | Erik Arvstedt <erik.arvstedt@gmail.com> | 2022-07-13 12:29:15 +0200 |
commit | 79aebd3e05e08d5207aea674e4441cfbc3201a1e (patch) | |
tree | 3d83a798417319ad3926faf7025901d57f5ec087 /pkgs/applications/blockchains/btcpayserver/default.nix | |
parent | b45e4a004e89af399cbccac684745d33cb4b1e46 (diff) | |
download | nixpkgs-79aebd3e05e08d5207aea674e4441cfbc3201a1e.tar nixpkgs-79aebd3e05e08d5207aea674e4441cfbc3201a1e.tar.gz nixpkgs-79aebd3e05e08d5207aea674e4441cfbc3201a1e.tar.bz2 nixpkgs-79aebd3e05e08d5207aea674e4441cfbc3201a1e.tar.lz nixpkgs-79aebd3e05e08d5207aea674e4441cfbc3201a1e.tar.xz nixpkgs-79aebd3e05e08d5207aea674e4441cfbc3201a1e.tar.zst nixpkgs-79aebd3e05e08d5207aea674e4441cfbc3201a1e.zip |
btcpayserver: enable build on darwin
Diffstat (limited to 'pkgs/applications/blockchains/btcpayserver/default.nix')
-rw-r--r-- | pkgs/applications/blockchains/btcpayserver/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/applications/blockchains/btcpayserver/default.nix b/pkgs/applications/blockchains/btcpayserver/default.nix index 074e3b24af1..0a8414a9664 100644 --- a/pkgs/applications/blockchains/btcpayserver/default.nix +++ b/pkgs/applications/blockchains/btcpayserver/default.nix @@ -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; }; } |