top-level/all-packages.nix: Remove self

It has been deprecated for five releases; over two years.
Technically it's even an internal variable, but we've allowed
forks to migrate.
This commit is contained in:
Robert Hensing 2021-08-08 14:31:34 +02:00
parent 9b06d00d8b
commit faab2fda34

View file

@ -10,19 +10,6 @@ res: pkgs: super:
with pkgs;
let
self =
builtins.trace ''
It seems that you are using a patched Nixpkgs that references the self
variable in pkgs/top-level/all-packages.nix. This variable was incorrectly
named, so its usage needs attention. Please use pkgs for packages or super
for functions.
''
res; # Do *NOT* use res in your fork. It will be removed.
# TODO: turn self into an error
in
{
# A stdenv capable of building 32-bit binaries. On x86_64-linux,