git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #55097 from Ericson2314/remove-res

all-packages: Just refer to `self`, not `super`, or `res`

commite375f6d5ac86ca83e3871ebb9d9f2bd6632a554a authorJohn Ericson <git@JohnEricson.me> dateSat 2 Feb 2019, 17:38 (8 years ago) parenta9bf045755e824
3 files changed+12−29
pkgs/servers/sql/postgresql/default.nix+7−7 pkgs/top-level/all-packages.nix+4−18 pkgs/top-level/stage.nix+1−4
pkgs/servers/sql/postgresql/default.nix+7−7
@@ -153,9 +153,9 @@ let
153153 '';
154154 };
155155
156−in self: super: {
156+in self: {
157157
158− postgresql_9_4 = super.callPackage generic {
158+ postgresql_9_4 = self.callPackage generic {
159159 version = "9.4.20";
160160 psqlSchema = "9.4";
161161 sha256 = "0zzqjz5jrn624hzh04drpj6axh30a9k6bgawid6rwk45nbfxicgf";
@@ -163,7 +163,7 @@ in self: super: {
163163 inherit self;
164164 };
165165
166− postgresql_9_5 = super.callPackage generic {
166+ postgresql_9_5 = self.callPackage generic {
167167 version = "9.5.15";
168168 psqlSchema = "9.5";
169169 sha256 = "0i2lylgmsmy2g1ixlvl112fryp7jmrd0i2brk8sxb7vzzpg3znnv";
@@ -171,7 +171,7 @@ in self: super: {
171171 inherit self;
172172 };
173173
174− postgresql_9_6 = super.callPackage generic {
174+ postgresql_9_6 = self.callPackage generic {
175175 version = "9.6.11";
176176 psqlSchema = "9.6";
177177 sha256 = "0c55akrkzqd6p6a8hr0338wk246hl76r9j16p4zn3s51d7f0l99q";
@@ -179,7 +179,7 @@ in self: super: {
179179 inherit self;
180180 };
181181
182− postgresql_10 = super.callPackage generic {
182+ postgresql_10 = self.callPackage generic {
183183 version = "10.6";
184184 psqlSchema = "10.0";
185185 sha256 = "0jv26y3f10svrjxzsgqxg956c86b664azyk2wppzpa5x11pjga38";
@@ -187,7 +187,7 @@ in self: super: {
187187 inherit self;
188188 };
189189
190− postgresql_11 = super.callPackage generic {
190+ postgresql_11 = self.callPackage generic {
191191 version = "11.1";
192192 psqlSchema = "11.1";
193193 sha256 = "026v0sicsh7avzi45waf8shcbhivyxmi7qgn9fd1x0vl520mx0ch";
@@ -195,4 +195,4 @@ in self: super: {
195195 inherit self;
196196 };
197197
198−}
198+}
pkgs/top-level/all-packages.nix+4−18
@@ -6,25 +6,11 @@
66 * Hint: ### starts category names.
77 */
88{ lib, noSysDirs, config}:
9−res: pkgs: super:
9+pkgs:
1010
1111with pkgs;
1212
13−let
14− self =
15− builtins.trace ''
16− It seems that you are using a patched Nixpkgs that references the self
17− variable in pkgs/top-level/all-packages.nix. This variable was incorrectly
18− named, so its usage needs attention. Please use pkgs for packages or super
19− for functions.
20− ''
21− res; # Do *NOT* use res in your fork. It will be removed.
22−
23− # TODO: turn self into an error
24−
25−in
2613{
27−
2814 # Allow callPackage to fill in the pkgs argument
2915 inherit pkgs;
3016
@@ -13872,7 +13858,7 @@ in
1387213858
1387313859 timescaledb-parallel-copy = callPackage ../development/tools/database/timescaledb-parallel-copy { };
1387413860
13875− inherit (import ../servers/sql/postgresql pkgs super)
13861+ inherit (import ../servers/sql/postgresql pkgs)
1387613862 postgresql_9_4
1387713863 postgresql_9_5
1387813864 postgresql_9_6
@@ -16218,7 +16204,7 @@ in
1621816204 };
1621916205 bitwig-studio2 = callPackage ../applications/audio/bitwig-studio/bitwig-studio2.nix {
1622016206 inherit (gnome3) zenity;
16221− inherit (res) bitwig-studio1;
16207+ inherit (pkgs) bitwig-studio1;
1622216208 };
1622316209 bitwig-studio = bitwig-studio2;
1622416210
@@ -22528,7 +22514,7 @@ in
2252822514 parameter set to the right value for your deployment target.
2252922515 */
2253022516 nixos = configuration:
22531− (import (res.path + "/nixos/lib/eval-config.nix") {
22517+ (import (pkgs.path + "/nixos/lib/eval-config.nix") {
2253222518 inherit (pkgs.stdenv.hostPlatform) system;
2253322519 modules = [(
2253422520 { lib, ... }: {
pkgs/top-level/stage.nix+1−4
@@ -89,10 +89,7 @@ let
8989 splice = self: super: import ./splice.nix lib self (buildPackages != null);
9090
9191 allPackages = self: super:
92− let res = import ./all-packages.nix
93− { inherit lib noSysDirs config; }
94− res self super;
95− in res;
92+ import ./all-packages.nix { inherit lib noSysDirs config; } self;
9693
9794 aliases = self: super: lib.optionalAttrs (config.allowAliases or true) (import ./aliases.nix lib self super);
9895