Skip to content

backport: nixVersions.nix_2_31: 2.31.2 -> 2.31.3#501359

Merged
philiptaron merged 1 commit into
NixOS:staging-25.11from
MangoIV:backport-478158-to-staging-25.11
Mar 19, 2026
Merged

backport: nixVersions.nix_2_31: 2.31.2 -> 2.31.3#501359
philiptaron merged 1 commit into
NixOS:staging-25.11from
MangoIV:backport-478158-to-staging-25.11

Conversation

@MangoIV
Copy link
Copy Markdown
Contributor

@MangoIV MangoIV commented Mar 19, 2026

Changelog of fixes:

https://github.com/NixOS/nix/releases/tag/2.31.3
(cherry picked from commit a4ef4c1)

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.

Changelog of fixes:

- Fix segfaults from `toView()` when compiled with newer nixpkgs (NixOS/nix#14154)
- Fix use-after-move in `DerivationGoal::repairClosure` and `SampleStack` (NixOS/nix#14086)
- Fix assertion failure on partially valid derivation outputs (NixOS/nix#14137)
- Fix `RestrictedStore::addDependency` recursion causing crashes (NixOS/nix#14729)
- Fix crash on flakerefs containing newlines (NixOS/nix#14450)

- Fix fakeSSH check breaking SSH copies with `user@host` format (NixOS/nix#14150)
- Fix `builtins.dirOf` regression from Nix 2.23 (NixOS/nix#14515)
- Restore missing `isAllowed` check in `ChrootLinuxDerivationBuilder` (NixOS/nix#14531)
- Fix curl with c-ares failing to resolve DNS in sandbox on macOS (NixOS/nix#14792)
- Fix tarball percent decoding for `file://` URIs (NixOS/nix#14729)
- `exportReferencesGraph`: Handle heterogeneous arrays (NixOS/nix#13861)
- Fix filesystem ops in store optimization (NixOS/nix#14676)

- Fix double-quoting of paths in logs (NixOS/nix#14210)
- Include path in world-writable error messages (NixOS/nix#14785)

- Better git refnames validation (NixOS/nix#14253)
- Use pure/restricted eval for help pages (NixOS/nix#14156)
- Improve store-reference compatibility with IPv6 ZoneId literals (NixOS/nix#14134)
- Correct `build-dir` error in manual (NixOS/nix#14745)

- Add mdbook 0.5 support (NixOS/nix#14690)
- Drop legacy Apple SDK pattern (NixOS/nix#13976)

https://github.com/NixOS/nix/releases/tag/2.31.3
(cherry picked from commit a4ef4c1)
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This report is automatically generated by the PR / Check / cherry-pick CI workflow.

Some of the commits in this PR require the author's and reviewer's attention.

Sometimes it is not possible to cherry-pick exactly the same patch.
This most frequently happens when resolving merge conflicts.
The range-diff will help to review the resolution of conflicts.

If you need to merge this PR despite the warnings, please dismiss this review shortly before merging.

Warning

Difference between 368f01e and original a4ef4c1 may warrant inspection.

Show diff
@@ Commit message
 
     Changelog of fixes:
 
-    ## Bug fixes (crashes)
-
     - Fix segfaults from `toView()` when compiled with newer nixpkgs (NixOS/nix#14154)
     - Fix use-after-move in `DerivationGoal::repairClosure` and `SampleStack` (NixOS/nix#14086)
     - Fix assertion failure on partially valid derivation outputs (NixOS/nix#14137)
     - Fix `RestrictedStore::addDependency` recursion causing crashes (NixOS/nix#14729)
     - Fix crash on flakerefs containing newlines (NixOS/nix#14450)
 
-    ## Bug fixes (functionality)
-
     - Fix fakeSSH check breaking SSH copies with `user@host` format (NixOS/nix#14150)
     - Fix `builtins.dirOf` regression from Nix 2.23 (NixOS/nix#14515)
     - Restore missing `isAllowed` check in `ChrootLinuxDerivationBuilder` (NixOS/nix#14531)
@@ Commit message
     - `exportReferencesGraph`: Handle heterogeneous arrays (NixOS/nix#13861)
     - Fix filesystem ops in store optimization (NixOS/nix#14676)
 
-    ## Bug fixes (output)
-
     - Fix double-quoting of paths in logs (NixOS/nix#14210)
     - Include path in world-writable error messages (NixOS/nix#14785)
 
-    ## Improvements
-
     - Better git refnames validation (NixOS/nix#14253)
     - Use pure/restricted eval for help pages (NixOS/nix#14156)
     - Improve store-reference compatibility with IPv6 ZoneId literals (NixOS/nix#14134)
     - Correct `build-dir` error in manual (NixOS/nix#14745)
 
-    ## Build system
-
     - Add mdbook 0.5 support (NixOS/nix#14690)
     - Drop legacy Apple SDK pattern (NixOS/nix#13976)
 
     https://github.com/NixOS/nix/releases/tag/2.31.3
+    (cherry picked from commit a4ef4c189ca6a336cb3e7b7c0e6cc551a6d764c9)
 
  ## nixos/modules/installer/tools/nix-fallback-paths.nix ##
 @@
@@ pkgs/tools/package-management/nix/default.nix: lib.makeExtensible (
 -      nixComponents_2_31 =
 -        (nixDependencies.callPackage ./modular/packages.nix rec {
 -          version = "2.31.2";
--          inherit (self.nix_2_30.meta) teams;
+-          inherit (self.nix_2_30.meta) maintainers teams;
 -          otherSplices = generateSplicesForNixComponents "nixComponents_2_31";
 -          src = fetchFromGitHub {
 -            owner = "NixOS";
@@ pkgs/tools/package-management/nix/default.nix: lib.makeExtensible (
 -            hash = "sha256-NLGXPLjENLeKVOg3OZgHXZ+1x6sPIKq9FHH8pxbCrDI=";
 -          };
 -        }).appendPatches
--          (
--            [
--              (fetchpatch2 {
--                name = "nix-2.31-14692-mdbook-0.5-support.patch";
--                url = "https://github.com/NixOS/nix/commit/a4f5f365090980a6eeb2ef483e49c04bdefd71a8.patch";
--                hash = "sha256-GOWZtHSzHovnD8iUknr61bo7y85i0BKdw3kVBGDfBX0=";
--              })
--            ]
--            ++
--              # issues on darwin: https://github.com/NixOS/nixpkgs/pull/468208#issuecomment-3626314109
--              lib.optional stdenv.isLinux (fetchpatch2 {
--                name = "nix-2.31-14240-sri-error-message.patch";
--                url = "https://github.com/NixOS/nix/commit/56751b1cd2c4700c71c545f2246adf602c97fdf5.patch";
--                hash = "sha256-CerSBAI+H2RqPp9jsCP0QIM2rZYx3yBZHVVUAztgc18=";
--              })
--          );
+-          patches_common;
 +      nixComponents_2_31 = nixDependencies.callPackage ./modular/packages.nix rec {
 +        version = "2.31.3";
-+        inherit (self.nix_2_30.meta) teams;
++        inherit (self.nix_2_30.meta) maintainers teams;
 +        otherSplices = generateSplicesForNixComponents "nixComponents_2_31";
 +        src = fetchFromGitHub {
 +          owner = "NixOS";

Hint: The full diffs are also available in the runner logs with slightly better highlighting.

@nixpkgs-ci nixpkgs-ci Bot requested review from a team and RaitoBezarius March 19, 2026 17:01
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 4.workflow: backport This targets a stable branch labels Mar 19, 2026
@philiptaron philiptaron dismissed github-actions[bot]’s stale review March 19, 2026 17:51

I reviewed the diffs; the changes are perfectly acceptable.

@philiptaron
Copy link
Copy Markdown
Contributor

I'm doing a build, which since it's staging and building a couple NixOS tests, is going on for a bit.

@philiptaron
Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 501359 --additional-package nixVersions.stable.tests
Commit: 368f01e2db7824708b6dac064f66f49681a9ce97


x86_64-linux

⏩ 1 package marked as broken and skipped:
  • tests.pkg-config.defaultPkgConfigPackages.tests-combined
⏩ 2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
✅ 1 test built:
  • nixosTests.simple
✅ 169 packages built:
  • appvm
  • bundix
  • cabal2nix
  • cached-nix-shell
  • chirpstack-concentratord
  • colmena
  • comma
  • common-updater-scripts
  • corto
  • crate2nix
  • crush
  • dhall-nix
  • dhall-nixpkgs
  • disko
  • dub-to-nix
  • dydisnix
  • fusionInventory
  • gcalcli
  • gcalcli.dist
  • gclient2nix
  • glpi-agent
  • haskellPackages.cabal2nix-unstable
  • haskellPackages.cabal2nix-unstable.bin
  • haskellPackages.cabal2nix-unstable.doc
  • haskellPackages.cli-nix
  • haskellPackages.cli-nix.doc
  • haskellPackages.dhall-nix
  • haskellPackages.dhall-nix.doc
  • haskellPackages.dhall-nixpkgs
  • haskellPackages.dhall-nixpkgs.doc
  • haskellPackages.distribution-nixpkgs-unstable
  • haskellPackages.distribution-nixpkgs-unstable.data
  • haskellPackages.distribution-nixpkgs-unstable.doc
  • haskellPackages.hnix
  • haskellPackages.hnix.doc
  • haskellPackages.language-nix-unstable
  • haskellPackages.language-nix-unstable.doc
  • haskellPackages.niv
  • haskellPackages.niv.bin
  • haskellPackages.niv.data
  • haskellPackages.niv.doc
  • haskellPackages.nix-paths
  • haskellPackages.nix-paths.doc
  • haskellPackages.nix-thunk
  • haskellPackages.nix-thunk.doc
  • haskellPackages.nvfetcher
  • haskellPackages.nvfetcher.doc
  • haskellPackages.update-nix-fetchgit
  • haskellPackages.update-nix-fetchgit.doc
  • home-manager
  • kcl
  • libnixxml
  • localtunnel
  • lua51Packages.luarocks-nix
  • luarocks-nix (luaPackages.luarocks-nix)
  • lua53Packages.luarocks-nix
  • lua54Packages.luarocks-nix
  • luajitPackages.luarocks-nix
  • luarocks-packages-updater
  • luarocks-packages-updater.dist
  • lux-cli
  • mdwatch
  • meshlab
  • mlv-app
  • nil
  • nim_lk
  • niv (niv.bin, niv.data)
  • nix (nixVersions.nix_2_31, nixVersions.stable)
  • nix-bundle
  • nix-direnv
  • nix-forecast
  • nix-index
  • nix-init
  • nix-pin
  • nix-prefetch
  • nix-prefetch-docker
  • nix-prefetch-github (python313Packages.nix-prefetch-github)
  • nix-prefetch-github.dist (python313Packages.nix-prefetch-github.dist)
  • nix-prefetch-github.man (python313Packages.nix-prefetch-github.man)
  • nix-required-mounts
  • nix-required-mounts.dist
  • nix-serve
  • nix-template
  • nix-update
  • nix-update.dist
  • nix-visualize
  • nix-visualize.dist
  • nix-web
  • nix.dev (nixVersions.nix_2_31.dev, nixVersions.stable.dev)
  • nix.doc (nixVersions.nix_2_31.doc, nixVersions.stable.doc)
  • nix.man (nixVersions.nix_2_31.man, nixVersions.stable.man)
  • nixStatic
  • nixStatic.dev
  • nixStatic.doc
  • nixStatic.man
  • nixVersions.stable.tests.misc
  • nixVersions.stable.tests.nix-fallback-paths
  • nixVersions.stable.tests.nixi686
  • nixVersions.stable.tests.nixi686.dev
  • nixVersions.stable.tests.nixi686.doc
  • nixVersions.stable.tests.nixi686.man
  • nixVersions.stable.tests.nixpkgs-lib
  • nixVersions.stable.tests.pkg-config
  • nixVersions.stable.tests.simpleUefiSystemdBoot
  • nixVersions.stable.tests.srcVersion
  • nixVersions.stable.tests.upgrade
  • nixci
  • nixos-anywhere
  • nixos-generators
  • nixos-option
  • nixos-rebuild
  • nixos-rebuild-ng
  • nixos-rebuild-ng.dist
  • nixos-shell
  • nixpkgs-hammering
  • nixpkgs-manual
  • nixpkgs-review
  • nixpkgs-review.dist
  • nixpkgs-reviewFull
  • nixpkgs-reviewFull.dist
  • nixseparatedebuginfod2
  • nixtract
  • node2nix (nodePackages.node2nix)
  • nodePackages_latest.node2nix
  • nps
  • nuget-to-json
  • nurl
  • nvfetcher
  • python312Packages.nix-kernel
  • python312Packages.nix-kernel.dist
  • python312Packages.nix-prefetch-github
  • python312Packages.nix-prefetch-github.dist
  • python312Packages.nix-prefetch-github.man
  • python312Packages.pymeshlab (python313Packages.pymeshlab)
  • python313Packages.nix-kernel
  • python313Packages.nix-kernel.dist
  • python313Packages.nixpkgs-updaters-library
  • python313Packages.nixpkgs-updaters-library.dist
  • ragenix
  • sbomnix
  • sbomnix.dist
  • sus-compiler
  • swiftpm2nix (swiftPackages.swiftpm2nix)
  • terranix
  • tests.devShellTools.nixos
  • tests.dhall.generateDhallDirectoryPackage
  • tests.fetchgit.cached-prefetch-avoids-fetch
  • tests.fetchgit.prefetch-git-no-add-path
  • tests.pkg-config.defaultPkgConfigPackages.nix-cmd
  • tests.pkg-config.defaultPkgConfigPackages.nix-expr
  • tests.pkg-config.defaultPkgConfigPackages.nix-main
  • tests.pkg-config.defaultPkgConfigPackages.nix-store
  • tests.pkgs-lib
  • tests.testers.lycheeLinkCheck.network
  • tests.testers.nixosTest-example
  • tests.testers.runNixOSTest-example (tests.testers.runNixOSTest-extendNixOS)
  • tests.trivial-builders.references
  • update-nix-fetchgit
  • update-python-libraries
  • vclab-nexus
  • vclab-nexus.bin
  • vimPluginsUpdater
  • vulnix
  • vulnix.dist
  • vulnix.doc
  • vulnix.man
  • wp4nix
  • xosd-xft
  • zon2nix

@philiptaron philiptaron added this pull request to the merge queue Mar 19, 2026
@philiptaron
Copy link
Copy Markdown
Contributor

Thanks for this, @MangoIV!

Merged via the queue into NixOS:staging-25.11 with commit 2dc954e Mar 19, 2026
36 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants