-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
haskellPackages: add script to sweep for unused overrides #384591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: haskell-updates
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fancy, I assume you use something like this regularly?
I guess the worst this can do is bit-rot. So I am in favor.
Well it's a much better approach than my old "let's look at old enough overrides and see if they can be cleaned up". I also just recently realised this could probably be re-purposed for |
b95473c
to
66c376b
Compare
Re-worked this so it's much more versatile. It's not particularly haskellPackages specific anymore, so maybe it can be placed elsewhere? |
I feel it is good here. Why do you use overrideAttrs for doCheck and patches? We normally also control these via overrideCabal within nixpkgs. |
I had overrideCabal at start then noticed that |
# Utils for sweeping through packages based on some property discoverable at eval time | ||
# Useful for narrowing down package candidates on which to test some build time property | ||
# | ||
# Example 1: finding packages with patches that no longer apply |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arguably, here the better approach is to build srcOnly pkg
and see whether it fails which is much cheaper.
Used for #384127 , #384431, #397255
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.