diff options
author | mdarocha <git@mdarocha.pl> | 2022-07-04 11:06:16 +0200 |
---|---|---|
committer | mdarocha <git@mdarocha.pl> | 2022-07-13 17:15:39 +0200 |
commit | 98db245db753cbc83283ec15a55abe71914b2711 (patch) | |
tree | 9beca4fcf1094da72dccf0d73efdf482b440c51d /pkgs/build-support/dotnet | |
parent | 3d79e4871b8db65b613761a29295b07d89f059d1 (diff) | |
download | nixpkgs-98db245db753cbc83283ec15a55abe71914b2711.tar nixpkgs-98db245db753cbc83283ec15a55abe71914b2711.tar.gz nixpkgs-98db245db753cbc83283ec15a55abe71914b2711.tar.bz2 nixpkgs-98db245db753cbc83283ec15a55abe71914b2711.tar.lz nixpkgs-98db245db753cbc83283ec15a55abe71914b2711.tar.xz nixpkgs-98db245db753cbc83283ec15a55abe71914b2711.tar.zst nixpkgs-98db245db753cbc83283ec15a55abe71914b2711.zip |
buildDotnetModule: explicitly set UseAppHost to true
On macOS, the native executable is not generated by default on Catalina and above. See https://github.com/dotnet/sdk/issues/10780
Diffstat (limited to 'pkgs/build-support/dotnet')
-rw-r--r-- | pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-build-hook.sh | 1 | ||||
-rw-r--r-- | pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-install-hook.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-build-hook.sh b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-build-hook.sh index cd1c401735d..5a5ece6d997 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-build-hook.sh +++ b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-build-hook.sh @@ -25,6 +25,7 @@ dotnetBuildHook() { -p:BuildInParallel=$parallelBuildFlag \ -p:ContinuousIntegrationBuild=true \ -p:Deterministic=true \ + -p:UseAppHost=true \ --configuration "@buildType@" \ --no-restore \ ${versionFlag-} \ diff --git a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-install-hook.sh b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-install-hook.sh index fcd3e745900..7984c5ebd3c 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-install-hook.sh +++ b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-install-hook.sh @@ -11,6 +11,7 @@ dotnetInstallHook() { dotnet publish "$project" \ -p:ContinuousIntegrationBuild=true \ -p:Deterministic=true \ + -p:UseAppHost=true \ --output "$out/lib/${pname}" \ --configuration "@buildType@" \ --no-build \ |