Skip to content

treewide/pkgs: remove 'with lib;'#334470

Merged
fricklerhandwerk merged 55 commits intoNixOS:masterfrom
Stunkymonkey:treewide-pkgs-remove-with-lib
Aug 16, 2024
Merged

treewide/pkgs: remove 'with lib;'#334470
fricklerhandwerk merged 55 commits intoNixOS:masterfrom
Stunkymonkey:treewide-pkgs-remove-with-lib

Conversation

@Stunkymonkey
Copy link
Contributor

@Stunkymonkey Stunkymonkey commented Aug 13, 2024

Description of changes

part of #208242

my goal was to remove all single-line with lib; from pkgs/

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@Stunkymonkey Stunkymonkey force-pushed the treewide-pkgs-remove-with-lib branch from 9e68181 to ce965f9 Compare August 13, 2024 20:46
@philiptaron
Copy link
Contributor

Thanks. I'll take a look soon. Cc: @fricklerhandwerk

@Stunkymonkey Stunkymonkey marked this pull request as ready for review August 13, 2024 21:25
Copy link
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

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

Let's fix up the ofBorg eval failures first, then I'll do the work of reading through it.

@Stunkymonkey Stunkymonkey force-pushed the treewide-pkgs-remove-with-lib branch from ce965f9 to 91b4f3a Compare August 14, 2024 17:04
@fricklerhandwerk
Copy link
Contributor

Nice! Ping me again if it evaluates and I'll merge.

@philiptaron
Copy link
Contributor

@Stunkymonkey Stunkymonkey force-pushed the treewide-pkgs-remove-with-lib branch 2 times, most recently from 30c4126 to da39669 Compare August 15, 2024 17:06
@Stunkymonkey Stunkymonkey force-pushed the treewide-pkgs-remove-with-lib branch from da39669 to 8eaeb5e Compare August 15, 2024 17:18
@philiptaron
Copy link
Contributor

@Stunkymonkey: I use some variant of this as a cheap-and-cheerful test that definitely doesn't do the same thing as ofBorg but does make sure that everything parses at the top level.

watchexec -w pkgs 'fd -tf nix$ pkgs | xargs nix-instantiate --parse > /dev/null'

See watchexec, fd, and nix-instantiate. Because stdout is redirected but not stderr, errors still show up.

@ofborg ofborg 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 Aug 15, 2024
@Stunkymonkey
Copy link
Contributor Author

ping @fricklerhandwerk

@fricklerhandwerk fricklerhandwerk removed the request for review from philiptaron August 16, 2024 14:08
@fricklerhandwerk fricklerhandwerk merged commit 639a4a7 into NixOS:master Aug 16, 2024
@philiptaron
Copy link
Contributor

🔆 🙌🏻

Way to go @Stunkymonkey!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: flutter Open-source UI software development kit for cross-platform applications 6.topic: julia Julia is a high-level, high-performance dynamic language for technical computing. 6.topic: kernel The Linux kernel 6.topic: printing Drivers, CUPS & Co. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants