Skip to content

nix-output-monitor: allow pinning a specific Nix version#454982

Open
philiptaron wants to merge 1 commit intoNixOS:masterfrom
philiptaron:nix-output-monitor-set-specific-nix
Open

nix-output-monitor: allow pinning a specific Nix version#454982
philiptaron wants to merge 1 commit intoNixOS:masterfrom
philiptaron:nix-output-monitor-set-specific-nix

Conversation

@philiptaron
Copy link
Contributor

I'm interested in using nom for nixos-rebuild, which wants to do this.

I tested with nom --version, which then turns around and calls nix --version.

  • nix-build --expr 'with import ./. { }; nix-output-monitor.override { withPinnedNix = true; nix = lixPackageSets.latest.lix; }'
  • nix-build --expr 'with import ./. { }; nix-output-monitor.override { withPinnedNix = true; nix = nixVersions.nix_2_32; }'
  • nix-build --expr 'with import ./. { }; nix-output-monitor.override { withPinnedNix = true; nix = nixVersions.nix_2_28; }'

It's moderately lame to hold a patch for this purpose in Nixpkgs, but this code appears to be quite stable over time in nix-output-monitor, so I don't feel too bad about it.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@philiptaron philiptaron requested a review from maralorn October 23, 2025 17:49
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Oct 23, 2025
I'm interested in using `nom` for `nixos-rebuild`, which wants to do this.
In order to avoid the patch breaking on upgrade without someone noticing, it's applied unilaterally, just with do-nothing replacements.
@philiptaron philiptaron force-pushed the nix-output-monitor-set-specific-nix branch from e71889e to 4cd9a77 Compare October 23, 2025 20:48
@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. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Oct 23, 2025
@philiptaron
Copy link
Contributor Author

I've put the motivating PR up at #455383.

@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant