all-packages.nix: Alias self to res, deprecating self#51401
all-packages.nix: Alias self to res, deprecating self#51401Ericson2314 merged 1 commit intoNixOS:masterfrom
Conversation
For historical reasons, self was ill-named. This removes its usages from all-packages.nix and provides a deprecation message for those who use a patched Nixpkgs. Some packages seem to depend on the peculiarities of res, as can be seen by making res into an alias of pkgs (normally "self"). The super variable doesn't have all that is needed. Therefore the simple fix is not guaranteed to work and as such, usages of res need to be changed to pkgs or super, case by case.
|
Since we use rec here i think we could just get rid of res. |
|
@matthewbauer I don't see a |
|
Oh maybe not then! |
|
So we have |
|
Can we just go straight to |
|
@Ericson2314 When switching, some hashes change, so it's not guaranteed to work. |
|
Fair enough. If you want to make the next one removing all the |
|
The warning here breaks tarball: |
This reference was added to master while the deprecation PR NixOS#51401 was open.
This reference was added to master while the deprecation PR #51401 was open.
|
IMHO, |
|
It's now been removed! |
For historical reasons, self in
all-packages.nixwas ill-named. This removes its usages fromall-packages.nixand provides a deprecation message for those who use a patched Nixpkgs.Some packages seem to depend on the peculiarities of res, as can be seen by making res into an alias of
pkgs(normallyself). Thesupervariable doesn't have all attributes that are needed.Therefore the simple fix is not guaranteed to work and as such,
usages of
resneed to be changed topkgsorsuper, case by case.Motivation for this change
#34881
Things done
sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)nix path-info -Sbefore and after)