Skip to content

nixVersions.nix_2_31: init at 2.31.0#437584

Merged
Ericson2314 merged 8 commits intoNixOS:masterfrom
philiptaron:nixVersions.nix_2_31
Sep 1, 2025
Merged

nixVersions.nix_2_31: init at 2.31.0#437584
Ericson2314 merged 8 commits intoNixOS:masterfrom
philiptaron:nixVersions.nix_2_31

Conversation

@philiptaron
Copy link
Contributor

@philiptaron philiptaron commented Aug 27, 2025

Diff: NixOS/nix@2.30.2...2.31.0

Changelog: https://discourse.nixos.org/t/nix-2-31-0-released/68465

Previous release PR:

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.

@philiptaron philiptaron requested a review from a team August 27, 2025 17:10
@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. labels Aug 27, 2025
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nix-2-31-0-released/68465/3

@xokdvium
Copy link
Contributor

We should bring over the Boehm GC patch from the parallel marking PR: NixOS/nix@0d559f0. I don't see a problem with making it unconditional though. That would have to go into dependencies.nix. It already has an override for boehm.

@nixpkgs-ci nixpkgs-ci bot added 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. and removed 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. labels Aug 28, 2025
@nix-owners nix-owners bot requested review from Artturin and lovesegfault August 28, 2025 22:56
@philiptaron

This comment was marked as outdated.

edolstra and others added 7 commits August 30, 2025 06:23
Also, don't try to access cache.nixos.org in the libstore unit tests.
We have to disable the test in versions prior to 2.31; that's OK, since
it was being skipped when run under Nix anyway before that.

(cherry picked from commit 01388b3e78582553cc30ee772db5b5aba8d89edd)

Co-authored-by: Philip Taron <philip.taron@gmail.com>
(cherry picked from commit f29acd5bbc0505ea6a78a51e4828a22630dd0ff1)
…-tests

This failed on macOS:

  nix-store-tests-run> C++ exception with description "../nix_api_store.cc:33: nix_err_code(ctx) != NIX_OK, message: error: getting status of '/nix/var/nix/daemon-socket/socket': Operation not permitted" thrown in the test body.

(cherry picked from commit 778156072444fdd06812b89e86169bf45f2425df)
If the mark stack size is too small, it greatly inhibits parallel
marking, which is very bad for performance on multi-core systems.

(cherry picked from commit 0d559f0c1301af9bd2c6751761bff6490962d0ee)
…xecution environment

(cherry picked from commit b21304fe4c491b871682fc292d9c31410cbb418a)
@philiptaron philiptaron force-pushed the nixVersions.nix_2_31 branch from d75b88e to 42e6ff4 Compare August 30, 2025 13:37
@philiptaron
Copy link
Contributor Author

I cherry-picked upstream commits for all the changes made to the modular packaging. Now I'm running the tests for every packaged version of Nix.

@philiptaron
Copy link
Contributor Author

philiptaron commented Aug 30, 2025

Here's the test results you asked for, @Mic92.

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 437584 --package nixVersions.nix_2_29.tests --package nixVersions.nix_2_31.tests --package nixVersions.nix_2_30.tests --package nixVersions.nix_2_28.tests
Commit: 42e6ff4333af70e7385820837a8fac96833c24e8


x86_64-linux

❌ 4 packages failed to build:
  • nixVersions.nix_2_28.tests.nixStatic
  • nixVersions.nix_2_28.tests.nixStatic.dev (nixVersions.nix_2_28.tests.nixStatic.dev.dev, nixVersions.nix_2_28.tests.nixStatic.dev.doc, nixVersions.nix_2_28.tests.nixStatic.dev.man)
  • nixVersions.nix_2_28.tests.nixStatic.doc (nixVersions.nix_2_28.tests.nixStatic.doc.dev, nixVersions.nix_2_28.tests.nixStatic.doc.doc, nixVersions.nix_2_28.tests.nixStatic.doc.man)
  • nixVersions.nix_2_28.tests.nixStatic.man (nixVersions.nix_2_28.tests.nixStatic.man.dev, nixVersions.nix_2_28.tests.nixStatic.man.doc, nixVersions.nix_2_28.tests.nixStatic.man.man)
✅ 43 packages built:
  • nixVersions.nix_2_28.tests.misc
  • nixVersions.nix_2_28.tests.nixi686
  • nixVersions.nix_2_28.tests.nixi686.debug (nixVersions.nix_2_28.tests.nixi686.debug.debug, nixVersions.nix_2_28.tests.nixi686.debug.dev, nixVersions.nix_2_28.tests.nixi686.debug.doc, nixVersions.nix_2_28.tests.nixi686.debug.man)
  • nixVersions.nix_2_28.tests.nixi686.dev (nixVersions.nix_2_28.tests.nixi686.dev.debug, nixVersions.nix_2_28.tests.nixi686.dev.dev, nixVersions.nix_2_28.tests.nixi686.dev.doc, nixVersions.nix_2_28.tests.nixi686.dev.man)
  • nixVersions.nix_2_28.tests.nixi686.doc (nixVersions.nix_2_28.tests.nixi686.doc.debug, nixVersions.nix_2_28.tests.nixi686.doc.dev, nixVersions.nix_2_28.tests.nixi686.doc.doc, nixVersions.nix_2_28.tests.nixi686.doc.man)
  • nixVersions.nix_2_28.tests.nixi686.man (nixVersions.nix_2_28.tests.nixi686.man.debug, nixVersions.nix_2_28.tests.nixi686.man.dev, nixVersions.nix_2_28.tests.nixi686.man.doc, nixVersions.nix_2_28.tests.nixi686.man.man)
  • nixVersions.nix_2_28.tests.nixpkgs-lib
  • nixVersions.nix_2_28.tests.simpleUefiSystemdBoot
  • nixVersions.nix_2_28.tests.srcVersion
  • nixVersions.nix_2_28.tests.upgrade
  • nixVersions.nix_2_29.tests.nixStatic
  • nixVersions.nix_2_29.tests.nixStatic.dev (nixVersions.nix_2_29.tests.nixStatic.dev.dev, nixVersions.nix_2_29.tests.nixStatic.dev.doc, nixVersions.nix_2_29.tests.nixStatic.dev.man)
  • nixVersions.nix_2_29.tests.nixStatic.doc (nixVersions.nix_2_29.tests.nixStatic.doc.dev, nixVersions.nix_2_29.tests.nixStatic.doc.doc, nixVersions.nix_2_29.tests.nixStatic.doc.man)
  • nixVersions.nix_2_29.tests.nixStatic.man (nixVersions.nix_2_29.tests.nixStatic.man.dev, nixVersions.nix_2_29.tests.nixStatic.man.doc, nixVersions.nix_2_29.tests.nixStatic.man.man)
  • nixVersions.nix_2_29.tests.nixi686
  • nixVersions.nix_2_29.tests.nixi686.dev (nixVersions.nix_2_29.tests.nixi686.dev.dev, nixVersions.nix_2_29.tests.nixi686.dev.doc, nixVersions.nix_2_29.tests.nixi686.dev.man)
  • nixVersions.nix_2_29.tests.nixi686.doc (nixVersions.nix_2_29.tests.nixi686.doc.dev, nixVersions.nix_2_29.tests.nixi686.doc.doc, nixVersions.nix_2_29.tests.nixi686.doc.man)
  • nixVersions.nix_2_29.tests.nixi686.man (nixVersions.nix_2_29.tests.nixi686.man.dev, nixVersions.nix_2_29.tests.nixi686.man.doc, nixVersions.nix_2_29.tests.nixi686.man.man)
  • nixVersions.nix_2_29.tests.nixpkgs-lib
  • nixVersions.nix_2_29.tests.pkg-config
  • nixVersions.nix_2_29.tests.srcVersion
  • nixVersions.nix_2_30.tests.nixStatic
  • nixVersions.nix_2_30.tests.nixStatic.dev (nixVersions.nix_2_30.tests.nixStatic.dev.dev, nixVersions.nix_2_30.tests.nixStatic.dev.doc, nixVersions.nix_2_30.tests.nixStatic.dev.man)
  • nixVersions.nix_2_30.tests.nixStatic.doc (nixVersions.nix_2_30.tests.nixStatic.doc.dev, nixVersions.nix_2_30.tests.nixStatic.doc.doc, nixVersions.nix_2_30.tests.nixStatic.doc.man)
  • nixVersions.nix_2_30.tests.nixStatic.man (nixVersions.nix_2_30.tests.nixStatic.man.dev, nixVersions.nix_2_30.tests.nixStatic.man.doc, nixVersions.nix_2_30.tests.nixStatic.man.man)
  • nixVersions.nix_2_30.tests.nixi686
  • nixVersions.nix_2_30.tests.nixi686.dev (nixVersions.nix_2_30.tests.nixi686.dev.dev, nixVersions.nix_2_30.tests.nixi686.dev.doc, nixVersions.nix_2_30.tests.nixi686.dev.man)
  • nixVersions.nix_2_30.tests.nixi686.doc (nixVersions.nix_2_30.tests.nixi686.doc.dev, nixVersions.nix_2_30.tests.nixi686.doc.doc, nixVersions.nix_2_30.tests.nixi686.doc.man)
  • nixVersions.nix_2_30.tests.nixi686.man (nixVersions.nix_2_30.tests.nixi686.man.dev, nixVersions.nix_2_30.tests.nixi686.man.doc, nixVersions.nix_2_30.tests.nixi686.man.man)
  • nixVersions.nix_2_30.tests.nixpkgs-lib
  • nixVersions.nix_2_30.tests.pkg-config
  • nixVersions.nix_2_30.tests.srcVersion
  • nixVersions.nix_2_31.tests.nixStatic
  • nixVersions.nix_2_31.tests.nixStatic.dev (nixVersions.nix_2_31.tests.nixStatic.dev.dev, nixVersions.nix_2_31.tests.nixStatic.dev.doc, nixVersions.nix_2_31.tests.nixStatic.dev.man)
  • nixVersions.nix_2_31.tests.nixStatic.doc (nixVersions.nix_2_31.tests.nixStatic.doc.dev, nixVersions.nix_2_31.tests.nixStatic.doc.doc, nixVersions.nix_2_31.tests.nixStatic.doc.man)
  • nixVersions.nix_2_31.tests.nixStatic.man (nixVersions.nix_2_31.tests.nixStatic.man.dev, nixVersions.nix_2_31.tests.nixStatic.man.doc, nixVersions.nix_2_31.tests.nixStatic.man.man)
  • nixVersions.nix_2_31.tests.nixi686
  • nixVersions.nix_2_31.tests.nixi686.dev (nixVersions.nix_2_31.tests.nixi686.dev.dev, nixVersions.nix_2_31.tests.nixi686.dev.doc, nixVersions.nix_2_31.tests.nixi686.dev.man)
  • nixVersions.nix_2_31.tests.nixi686.doc (nixVersions.nix_2_31.tests.nixi686.doc.dev, nixVersions.nix_2_31.tests.nixi686.doc.doc, nixVersions.nix_2_31.tests.nixi686.doc.man)
  • nixVersions.nix_2_31.tests.nixi686.man (nixVersions.nix_2_31.tests.nixi686.man.dev, nixVersions.nix_2_31.tests.nixi686.man.doc, nixVersions.nix_2_31.tests.nixi686.man.man)
  • nixVersions.nix_2_31.tests.nixpkgs-lib
  • nixVersions.nix_2_31.tests.pkg-config
  • nixVersions.nix_2_31.tests.srcVersion

Error logs: `x86_64-linux`
nixVersions.nix_2_28.tests.nixStatic
shrinking /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4/bin/nix-fetchers-tests
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
shrinking /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4/bin/nix-flake-tests
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
checking for references to /build/ in /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4...
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patching script interpreter paths in /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4
stripping (with command x86_64-unknown-linux-musl-strip and flags -S -p) in  /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4/lib /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4/libexec /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4/bin
shrinking RPATHs of ELF executables and libraries in /nix/store/pgq854gz74p9h3rvc3qb8jappwgl0na0-nix-static-x86_64-unknown-linux-musl-2.28.4-dev
checking for references to /build/ in /nix/store/pgq854gz74p9h3rvc3qb8jappwgl0na0-nix-static-x86_64-unknown-linux-musl-2.28.4-dev...
patching script interpreter paths in /nix/store/pgq854gz74p9h3rvc3qb8jappwgl0na0-nix-static-x86_64-unknown-linux-musl-2.28.4-dev
stripping (with command x86_64-unknown-linux-musl-strip and flags -S -p) in  /nix/store/pgq854gz74p9h3rvc3qb8jappwgl0na0-nix-static-x86_64-unknown-linux-musl-2.28.4-dev/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/gcsmf78dv521c2mh3lqv6y7gl6gbssjm-nix-static-x86_64-unknown-linux-musl-2.28.4-doc
checking for references to /build/ in /nix/store/gcsmf78dv521c2mh3lqv6y7gl6gbssjm-nix-static-x86_64-unknown-linux-musl-2.28.4-doc...
patching script interpreter paths in /nix/store/gcsmf78dv521c2mh3lqv6y7gl6gbssjm-nix-static-x86_64-unknown-linux-musl-2.28.4-doc

@nixpkgs-ci nixpkgs-ci bot added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Aug 30, 2025
@philiptaron
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 437584
Commit: 42e6ff4333af70e7385820837a8fac96833c24e8


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
❌ 6 packages failed to build:
  • kcl
  • nixStatic
  • nixStatic.dev
  • nixStatic.doc
  • nixStatic.man
  • sus-compiler
✅ 186 packages built:
  • appvm
  • attic-client
  • bower2nix
  • bundix
  • cabal2nix
  • cached-nix-shell
  • cachix (cachix.bin, cachix.doc)
  • chirpstack-concentratord
  • colmena
  • comma
  • common-updater-scripts
  • crate2nix
  • crush
  • devenv
  • disko
  • dub-to-nix
  • dydisnix
  • fusionInventory
  • gcalcli
  • gcalcli.dist
  • gclient2nix
  • glpi-agent
  • haskellPackages.cabal2nix-unstable
  • haskellPackages.cachix
  • haskellPackages.cachix.bin
  • haskellPackages.cachix.doc
  • haskellPackages.cli-nix
  • haskellPackages.cli-nix.doc
  • haskellPackages.hercules-ci-agent
  • haskellPackages.hercules-ci-agent.doc
  • haskellPackages.hercules-ci-cli
  • haskellPackages.hercules-ci-cli.doc
  • haskellPackages.hercules-ci-cnix-expr
  • haskellPackages.hercules-ci-cnix-expr.doc
  • haskellPackages.hercules-ci-cnix-store
  • haskellPackages.hercules-ci-cnix-store.doc
  • haskellPackages.niv
  • haskellPackages.niv.bin
  • haskellPackages.niv.data
  • haskellPackages.niv.doc
  • haskellPackages.nix-paths
  • haskellPackages.nix-paths.doc
  • haskellPackages.nix-serve-ng
  • haskellPackages.nix-serve-ng.doc
  • haskellPackages.nix-thunk
  • haskellPackages.nix-thunk.doc
  • haskellPackages.nvfetcher
  • haskellPackages.nvfetcher.doc
  • haskellPackages.update-nix-fetchgit
  • haskellPackages.update-nix-fetchgit.doc
  • hci
  • hercules-ci-agent
  • home-manager
  • hydra
  • hydra.doc
  • libnixxml
  • 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
  • mlv-app
  • nil
  • nim_lk
  • niv (niv.bin, niv.data)
  • nix (nixVersions.nix_2_28, nixVersions.stable)
  • nix-bundle
  • nix-direnv
  • nix-du
  • nix-eval-jobs
  • nix-eval-jobs.dev
  • nix-fast-build
  • nix-fast-build.dist
  • nix-forecast
  • nix-heuristic-gc
  • nix-heuristic-gc.dist
  • nix-index
  • nix-init
  • nix-inspect
  • nix-pin
  • nix-plugins
  • 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-serve-ng
  • nix-template
  • nix-unit
  • nix-update
  • nix-update.dist
  • nix-visualize
  • nix-visualize.dist
  • nix-web
  • nix.debug (nixVersions.nix_2_28.debug, nixVersions.stable.debug)
  • nix.dev (nixVersions.nix_2_28.dev, nixVersions.stable.dev)
  • nix.doc (nixVersions.nix_2_28.doc, nixVersions.stable.doc)
  • nix.man (nixVersions.nix_2_28.man, nixVersions.stable.man)
  • nixDependencies.boehmgc
  • nixDependencies.boehmgc.debug
  • nixDependencies.boehmgc.dev
  • nixDependencies.boehmgc.doc
  • nixVersions.git
  • nixVersions.git.dev
  • nixVersions.git.doc
  • nixVersions.git.man
  • nixVersions.latest (nixVersions.nix_2_30)
  • nixVersions.latest.dev (nixVersions.nix_2_30.dev)
  • nixVersions.latest.doc (nixVersions.nix_2_30.doc)
  • nixVersions.latest.man (nixVersions.nix_2_30.man)
  • nixVersions.nix_2_29
  • nixVersions.nix_2_29.dev
  • nixVersions.nix_2_29.doc
  • nixVersions.nix_2_29.man
  • nixVersions.nix_2_31
  • nixVersions.nix_2_31.dev
  • nixVersions.nix_2_31.doc
  • nixVersions.nix_2_31.man
  • nixci
  • nixd
  • 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
  • nixt
  • nixt.dev
  • nixtract
  • node2nix (nodePackages.node2nix)
  • nodePackages_latest.node2nix
  • nps
  • nuget-to-json
  • nurl
  • nvfetcher
  • omnix
  • python312Packages.nix-kernel
  • python312Packages.nix-kernel.dist
  • python312Packages.nix-prefetch-github
  • python312Packages.nix-prefetch-github.dist
  • python312Packages.nix-prefetch-github.man
  • python313Packages.nix-kernel
  • python313Packages.nix-kernel.dist
  • python313Packages.nixpkgs-updaters-library
  • python313Packages.nixpkgs-updaters-library.dist
  • ragenix
  • sbomnix
  • sbomnix.dist
  • swiftpm2nix (swiftPackages.swiftpm2nix)
  • terranix
  • tests.devShellTools.nixos
  • tests.haskell.cabalSdist.hercules-ci-cnix-store
  • tests.haskell.cabalSdist.hercules-ci-cnix-store.doc
  • 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.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
  • vimPluginsUpdater
  • vulnix
  • vulnix.dist
  • vulnix.doc
  • vulnix.man
  • wp4nix
  • xosd-xft
  • zon2nix

Error logs: `x86_64-linux`
nixStatic
shrinking /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4/bin/nix-fetchers-tests
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
shrinking /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4/bin/nix-flake-tests
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
checking for references to /build/ in /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4...
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked
patching script interpreter paths in /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4
stripping (with command x86_64-unknown-linux-musl-strip and flags -S -p) in  /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4/lib /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4/libexec /nix/store/8fdgv8dg18dp234ygjkmqkgc7k8x6gb9-nix-static-x86_64-unknown-linux-musl-2.28.4/bin
shrinking RPATHs of ELF executables and libraries in /nix/store/pgq854gz74p9h3rvc3qb8jappwgl0na0-nix-static-x86_64-unknown-linux-musl-2.28.4-dev
checking for references to /build/ in /nix/store/pgq854gz74p9h3rvc3qb8jappwgl0na0-nix-static-x86_64-unknown-linux-musl-2.28.4-dev...
patching script interpreter paths in /nix/store/pgq854gz74p9h3rvc3qb8jappwgl0na0-nix-static-x86_64-unknown-linux-musl-2.28.4-dev
stripping (with command x86_64-unknown-linux-musl-strip and flags -S -p) in  /nix/store/pgq854gz74p9h3rvc3qb8jappwgl0na0-nix-static-x86_64-unknown-linux-musl-2.28.4-dev/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/gcsmf78dv521c2mh3lqv6y7gl6gbssjm-nix-static-x86_64-unknown-linux-musl-2.28.4-doc
checking for references to /build/ in /nix/store/gcsmf78dv521c2mh3lqv6y7gl6gbssjm-nix-static-x86_64-unknown-linux-musl-2.28.4-doc...
patching script interpreter paths in /nix/store/gcsmf78dv521c2mh3lqv6y7gl6gbssjm-nix-static-x86_64-unknown-linux-musl-2.28.4-doc
sus-compiler
   |
24 | pub fn wire_name_self_latency(wire: &RealWire, use_latency: bool) -> Cow<'_, str> {
   |                                                                          +++

warning: hiding a lifetime that's elided elsewhere is confusing
--> src/codegen/system_verilog.rs:574:34
|
574 | fn inline_constant_to_string(&self) -> Cow<str> {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use &#x27;_ for type paths
|
574 | fn inline_constant_to_string(&self) -> Cow<'_, str> {
| +++

warning: sus_compiler (bin "sus_compiler") generated 4 warnings
error: could not compile sus_compiler (bin "sus_compiler") due to 1 previous error; 4 warnings emitted

@roberth
Copy link
Member

roberth commented Aug 31, 2025

x86_64-linux

❌ 4 packages failed to build:

  • nixVersions.nix_2_28.tests.nixStatic
  • nixStatic

Known issue

@roberth
Copy link
Member

roberth commented Aug 31, 2025

In the past I've prioritized getting the new package in over getting everything using nixVersions.latest tested.
I don't get a sense that this first step (this PR) is particularly fast to merge despite that.
Should we add the nixVersions.latest bump and have more certainty? That could speed things up if analysis paralysis was the problem.
Assuming we don't get into staging territory, that might be preferable?
(.stable bumps are for staging)

@philiptaron
Copy link
Contributor Author

philiptaron commented Sep 1, 2025

I don't get a sense that this first step (this PR) is particularly fast to merge despite that.

I'm itching to press the merge button as soon as I get a ✅. The testing I've done is enough to convince me it's good to go. I had hoped that the Nix team's confidence in making a release would be enough to quickly provide that ✅ but as you note it is slow to arrive. C'est la vie I suppose.

I have no problems bumping nixVersions.latest; my crafting this PR at all comes from waiting a few days for a Nix team member to open one, then not seeing it, deciding that fortune favors those who act for themselves. As the previous Nix 2.30 PR didn't bump latest, I didn't do so here.

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Sep 1, 2025
@Ericson2314 Ericson2314 merged commit 6ada30e into NixOS:master Sep 1, 2025
32 of 34 checks passed
@Ericson2314
Copy link
Member

Ericson2314 commented Sep 1, 2025

Thanks for the very thorough job here, @philiptaron!

@roberth roberth mentioned this pull request Sep 1, 2025
13 tasks
# small, run Nix with GC_PRINT_STATS=1 and look for messages
# such as `Mark stack overflow`, `No room to copy back mark
# stack`, and `Grew mark stack to ... frames`.
NIX_CFLAGS_COMPILE = "-DINITIAL_MARK_STACK_SIZE=1048576";
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this is breaking anyone who sets env.NIX_CFLAGS_COMPILE globally. Previously there were efforts to ensure we only use env.NIX_CFLAGS_COMPILE and not the attrs.NIX_CFLAGS_COMPILE (see #217206).

Is there any reason this needs to be directly in attrs or was this just a small oversight and we can move to using env?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah that was an oversight.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I cherry-picked the upstream commit but I agree that we should not use overrideAttrs (and ideally not use overrides) here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the quick response! I don't have time at the moment to create a PR, but will do so tonight (just to use env. for now, not avoiding overrideAttrs overall) if no one else gets to it first.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nvm, it was such a quick fix I just made the PR now: #439910

Copy link
Contributor Author

Choose a reason for hiding this comment

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

caffineehacker added a commit to caffineehacker/nixpkgs that referenced this pull request Sep 3, 2025
By not using env the current code causes problems for anyone globally
overriding compile flags. This fix repairs the expected behavior.

Break appears in NixOS#437584.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 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. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants