-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
__cleanAttrs
: Clean packages that don't expose all internals
#217243
Commits on Mar 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ef06fe8 - Browse repository at this point
Copy the full SHA ef06fe8View commit details -
Configuration menu - View commit details
-
Copy full SHA for db2571b - Browse repository at this point
Copy the full SHA db2571bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cbfa15 - Browse repository at this point
Copy the full SHA 3cbfa15View commit details -
mkDerivation: Add __cleanAttrs ? false
This removes unnecessary implementation details from the package attrset.
Configuration menu - View commit details
-
Copy full SHA for 59db5a5 - Browse repository at this point
Copy the full SHA 59db5a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89ff705 - Browse repository at this point
Copy the full SHA 89ff705View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b45ecd - Browse repository at this point
Copy the full SHA 9b45ecdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b9e7258 - Browse repository at this point
Copy the full SHA b9e7258View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a0bba8 - Browse repository at this point
Copy the full SHA 7a0bba8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3abc47f - Browse repository at this point
Copy the full SHA 3abc47fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 416741d - Browse repository at this point
Copy the full SHA 416741dView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc32ea5 - Browse repository at this point
Copy the full SHA dc32ea5View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd0de0e - Browse repository at this point
Copy the full SHA cd0de0eView commit details -
mkDerivation: Keep legacy name semantics
This avoids a mass-rebuild as many expressions currently use the name+version pair instead of just a name. The old meaning of name is based on the abused "name part" of store paths, but there is no real reason for the attrset to use this odd definition of name, except perhaps strong backward compatibility.
Configuration menu - View commit details
-
Copy full SHA for d02174b - Browse repository at this point
Copy the full SHA d02174bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2377feb - Browse repository at this point
Copy the full SHA 2377febView commit details -
Configuration menu - View commit details
-
Copy full SHA for fac41dd - Browse repository at this point
Copy the full SHA fac41ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7477b9 - Browse repository at this point
Copy the full SHA b7477b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc10d59 - Browse repository at this point
Copy the full SHA bc10d59View commit details -
make-derivation.nix: Inline genAttrs
Hoping to squeeze some performance out of this.
Configuration menu - View commit details
-
Copy full SHA for 2db600e - Browse repository at this point
Copy the full SHA 2db600eView commit details -
make-derivation.nix: Save another
//
Hoping to squeeze some performance out of this.
Configuration menu - View commit details
-
Copy full SHA for 7458ee0 - Browse repository at this point
Copy the full SHA 7458ee0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2c0a99 - Browse repository at this point
Copy the full SHA b2c0a99View commit details -
A very fancy wrapped GNU hello, showcasing various Nixpkgs features.
Configuration menu - View commit details
-
Copy full SHA for 36582b0 - Browse repository at this point
Copy the full SHA 36582b0View commit details -
Revert "pkgs.inputDerivation: Add pkg.inputDerivation alternative for…
… __cleanAttrs packages" Do not add this until we've decided what inputDerivation is and how it fits in with cleanAttrs and the possible devShell attribute - NixOS#206728 This reverts commit 99e1be309a70bfb8476b1892b8d102065860b2be.
Configuration menu - View commit details
-
Copy full SHA for 2295009 - Browse repository at this point
Copy the full SHA 2295009View commit details -
Configuration menu - View commit details
-
Copy full SHA for 165a2de - Browse repository at this point
Copy the full SHA 165a2deView commit details -
make-derivation.nix: Do expose
internals
when__cleanAttrs
Realistically, we'll want easier access than having to call a function to extract these bits. Having to go through a function means that the CLI becomes almost useless for troubleshooting, and the same for tab completion in the repl.
Configuration menu - View commit details
-
Copy full SHA for ce39083 - Browse repository at this point
Copy the full SHA ce39083View commit details -
Revert "lib.inspectMkDerivationArgs: init, alternative to .drvAttrs f…
…or __cleanArgs packages" This was too unergonomic to be the only method for retrieving these. By introducing the `internals` attribute for this purpose instead, we restore easy access without setting any wrong expectations regarding the stability of the contents. This reverts commit 01eea717c474d25b1636f9ee93c9f7bf95907fc6.
Configuration menu - View commit details
-
Copy full SHA for c24b772 - Browse repository at this point
Copy the full SHA c24b772View commit details -
Configuration menu - View commit details
-
Copy full SHA for c09aa93 - Browse repository at this point
Copy the full SHA c09aa93View commit details -
Configuration menu - View commit details
-
Copy full SHA for dbb8745 - Browse repository at this point
Copy the full SHA dbb8745View commit details -
Configuration menu - View commit details
-
Copy full SHA for b38a364 - Browse repository at this point
Copy the full SHA b38a364View commit details -
Configuration menu - View commit details
-
Copy full SHA for 854693c - Browse repository at this point
Copy the full SHA 854693cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a4655ce - Browse repository at this point
Copy the full SHA a4655ceView commit details -
mkDerivation: Add
__cleanAttrs = "warn";
The implementation with dynamic attributes is a little weird, but it performs better by avoiding some attrset copying and sorting, `//`.
Configuration menu - View commit details
-
Copy full SHA for 56a4141 - Browse repository at this point
Copy the full SHA 56a4141View commit details