diff options
author | nixbitcoin <nixbitcoin@i2pmail.org> | 2021-07-13 09:19:21 +0000 |
---|---|---|
committer | nixbitcoin <nixbitcoin@i2pmail.org> | 2021-07-16 09:44:51 +0000 |
commit | bf6cac3e7a94de1a5dc0da81899ec489780210a7 (patch) | |
tree | 096c939c9cd632f7a690de877e06d5e68ca5ccf5 /pkgs/applications/blockchains/btcpayserver/default.nix | |
parent | 97adda34b165d575ef70c92bcdb5e12597605c31 (diff) | |
download | nixpkgs-bf6cac3e7a94de1a5dc0da81899ec489780210a7.tar nixpkgs-bf6cac3e7a94de1a5dc0da81899ec489780210a7.tar.gz nixpkgs-bf6cac3e7a94de1a5dc0da81899ec489780210a7.tar.bz2 nixpkgs-bf6cac3e7a94de1a5dc0da81899ec489780210a7.tar.lz nixpkgs-bf6cac3e7a94de1a5dc0da81899ec489780210a7.tar.xz nixpkgs-bf6cac3e7a94de1a5dc0da81899ec489780210a7.tar.zst nixpkgs-bf6cac3e7a94de1a5dc0da81899ec489780210a7.zip |
btcpayserver: optional altcoin support
Diffstat (limited to 'pkgs/applications/blockchains/btcpayserver/default.nix')
-rw-r--r-- | pkgs/applications/blockchains/btcpayserver/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/blockchains/btcpayserver/default.nix b/pkgs/applications/blockchains/btcpayserver/default.nix index d942ac768a8..ba029aedeeb 100644 --- a/pkgs/applications/blockchains/btcpayserver/default.nix +++ b/pkgs/applications/blockchains/btcpayserver/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchFromGitHub, fetchurl, linkFarmFromDrvs, makeWrapper, - dotnetPackages, dotnetCorePackages + dotnetPackages, dotnetCorePackages, altcoinSupport ? false }: let @@ -34,8 +34,8 @@ stdenv.mkDerivation rec { nuget sources Add -Name tmpsrc -Source $TMP/nuget nuget init ${linkFarmFromDrvs "deps" deps} $TMP/nuget - dotnet restore --source $TMP/nuget BTCPayServer/BTCPayServer.csproj - dotnet publish --no-restore --output $out/share/$pname -c Release BTCPayServer/BTCPayServer.csproj + dotnet restore --source $TMP/nuget ${lib.optionalString altcoinSupport ''/p:Configuration="Altcoins-Release"''} BTCPayServer/BTCPayServer.csproj + dotnet publish --no-restore --output $out/share/$pname ${lib.optionalString altcoinSupport "-c Altcoins-Release"} BTCPayServer/BTCPayServer.csproj ''; # btcpayserver requires the publish directory as its working dir |