Skip to content

treewide: enable strictDeps and structuredAttrs for various low-level packages - #551108

Closed
SFrijters wants to merge 203 commits into
NixOS:stagingfrom
SFrijters:lowlevel-structuredattrs-phase5-pkgs-only
Closed

SFrijters wants to merge 203 commits into
NixOS:stagingfrom
SFrijters:lowlevel-structuredattrs-phase5-pkgs-only

Conversation

@SFrijters

@SFrijters SFrijters commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

A big move towards having strictDeps and structuredAttrs enabled on the paths to

  • tests.stdenv
  • pkgsi686Linux.tests.stdenv
  • pkgsMusl.tests.stdenv
  • gccgo
  • pkgsi686Linux.gccgo
  • hello
  • pkgsi686Linux.hello
  • pkgsMusl.hello
  • dust
  • pkgsi686Linux.dust
  • pkgsMusl.dust

as tested via nixpkgs-review (and by me rebuilding my system configurations with strictDepsByDefault and structuredAttrsByDefault enabled). A number of low-level builders need to be adapted with more care than these packages, for which required changes are more limited in scope.

This PR is not intended to be merged (unless some brave soul wants to take responsibility for that - it should Just Work, but it would be harder to debug if it doesn't), but as a centralized PR I can link to for the individual package PRs.

Currently re-running nixpkgs-review because staging moved between pre-testing and making this PR.

Things done

@SFrijters
SFrijters force-pushed the lowlevel-structuredattrs-phase5-pkgs-only branch from 8b1f241 to a7c0749 Compare August 10, 2026 12:13
This saves a big reformatting with finalAttrs and is maybe a bit cleaner?
The flags "--disable-static --enable-shared" must be split for structuredAttrs,
the other changes to configureFlags are cosmetic (but consistent).
@SFrijters

Copy link
Copy Markdown
Member Author

I think all of the commits have been split off into their own separate commits now; once most of them have been merged I'll rebase and retest to see what remains (if anything).

After that some low-level builders and fetchers still need an update.

@SFrijters

Copy link
Copy Markdown
Member Author

Huzzah, all contents of this PR have been merged as individual PRs, so this one can be closed.

@SFrijters SFrijters closed this Sep 4, 2026
@github-project-automation github-project-automation Bot moved this to Done in Stdenv Sep 4, 2026
@SFrijters
SFrijters deleted the lowlevel-structuredattrs-phase5-pkgs-only branch September 4, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related 6.topic: musl Running or building packages with musl libc 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: stdenv Standard environment 6.topic: tcl Dynamic, multi-paradigm programming language 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant