From 1311a5e1ba692cd38ecb80d710be359e94519ff9 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Tue, 25 Aug 2026 11:26:52 -0300 Subject: [PATCH] dotnet-hook: fix substitution of null runtime Some packages explitly use `dotnet-runtime = null` when outputting self-contained executables. This results in the hook script containing: dotnetRuntime=@dotnetRuntime@ --- pkgs/build-support/dotnet/build-dotnet-module/hook/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/dotnet/build-dotnet-module/hook/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/hook/default.nix index e1f7cd816719..58a89b855e70 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/hook/default.nix +++ b/pkgs/build-support/dotnet/build-dotnet-module/hook/default.nix @@ -9,7 +9,7 @@ makeSetupHook { name = "dotnet-hook"; substitutions = { - dotnetRuntime = dotnet-runtime; + dotnetRuntime = lib.defaultTo "" dotnet-runtime; wrapperPath = lib.makeBinPath [ which coreutils