Skip to content

dotnet-hook: fix substitution of null runtime - #556420

Merged
vcunat merged 1 commit into
NixOS:masterfrom
corngood:dotnet-null-runtime
Aug 25, 2026
Merged

vcunat merged 1 commit into
NixOS:masterfrom
corngood:dotnet-null-runtime

Conversation

@corngood

@corngood corngood commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Some packages explitly use dotnet-runtime = null when outputting self-contained executables. This results in the hook script containing:

dotnetRuntime=@dotnetRuntime@

Things done

Some packages explitly use `dotnet-runtime = null` when outputting
self-contained executables.  This results in the hook script containing:

  dotnetRuntime=@dotnetRuntime@
@corngood
corngood requested a review from a team August 25, 2026 14:31
@corngood

Copy link
Copy Markdown
Contributor Author

This came up in staging-next: #554614 (comment)

c82ff0a changed the substitution to use --subst-var dotnetRuntime, which will break when it tries to substitute null:

substituteStream() in derivation dotnet-hook: ERROR: variable $dotnetRuntime is unset

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 6.topic: dotnet Language: .NET labels Aug 25, 2026
@corngood

Copy link
Copy Markdown
Contributor Author

This fix feels messy, but I haven't thought of a better way.

@corngood
corngood marked this pull request as ready for review August 25, 2026 14:48
@corngood-bot

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (85fc054)

Command: nixpkgs-review pr 556420
Commit: 1311a5e1ba692cd38ecb80d710be359e94519ff9 (subsequent changes)
Merge: a75d66d6e65a71f001e195fc4cbf23e5f293660d

Logs: https://github.com/corngood/nixpkgs-review-gha/actions/runs/32861857574/attempts/1


x86_64-linux

✅ 4 packages built:
  • autoPatchcilHook (dotnetCorePackages.autoPatchcilHook)
  • crossmacro-daemon
  • netcoredbg
  • patchcil

aarch64-linux

✅ 4 packages built:
  • autoPatchcilHook (dotnetCorePackages.autoPatchcilHook)
  • crossmacro-daemon
  • netcoredbg
  • patchcil

x86_64-darwin

✅ No rebuilds


aarch64-darwin (sandbox = relaxed)

✅ 1 package built:
  • netcoredbg

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 25, 2026
@vcunat
vcunat added this pull request to the merge queue Aug 25, 2026
Merged via the queue into NixOS:master with commit 5bf820d Aug 25, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: dotnet Language: .NET 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants