aboutsummaryrefslogtreecommitdiff
path: root/pkgs/top-level/stage.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2018-12-02 19:24:49 +0100
committerRobert Hensing <robert@roberthensing.nl>2018-12-02 19:24:49 +0100
commit22aac3b921c3856c7c64c1ff74a403e8281939bb (patch)
tree89d1c63173184b195626729c83d9dc7ed30efcdf /pkgs/top-level/stage.nix
parent22e95afea557a5181a73de6577db06f2950fd59c (diff)
all-packages.nix: Alias self to res, deprecating self
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.
Diffstat (limited to 'pkgs/top-level/stage.nix')
-rw-r--r--pkgs/top-level/stage.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/top-level/stage.nix b/pkgs/top-level/stage.nix
index 1d412a6582cd..276350e56e60 100644
--- a/pkgs/top-level/stage.nix
+++ b/pkgs/top-level/stage.nix
@@ -91,7 +91,7 @@ let
allPackages = self: super:
let res = import ./all-packages.nix
{ inherit lib noSysDirs config; }
- res self;
+ res self super;
in res;
aliases = self: super: lib.optionalAttrs (config.allowAliases or true) (import ./aliases.nix lib self super);