git.iko.soy/typeable/nixpkgs
on master help sign in
top-level: no more need to expose `splicedPackages`

This was just done temporarily on the last cross-overhauling PR for testing purposes.

commitc869fe022e9db78f779f687e4ac4d7ce5578f447 authorJohn Ericson <Ericson2314@Yahoo.com> dateMon 26 Dec 2016, 14:42 (10 years ago) parent39fb46f
4 files changed+64−68
pkgs/stdenv/linux/make-bootstrap-tools-cross.nix+26−27 pkgs/top-level/release-cross.nix+36−36 pkgs/top-level/release-lib.nix+2−3 pkgs/top-level/splice.nix−2
pkgs/stdenv/linux/make-bootstrap-tools-cross.nix+26−27
@@ -55,33 +55,32 @@ let
5555 if toolsArch == "armv6l" then raspberrypiCrossSystem else
5656 if toolsArch == "armv7l" then armv7l-hf-multiplatform-crossSystem else null;
5757
58− pkgsUnspliced = pkgsFun ({inherit system;} // selectedCrossSystem);
59− pkgs = pkgsUnspliced.splicedPackages;
60−
61− inherit (pkgsUnspliced.buildPackages) stdenv nukeReferences cpio binutilsCross;
62−
63− glibc = pkgs.libcCross.nativeDrv;
64− bash = pkgs.bash.crossDrv;
65− findutils = pkgs.findutils.crossDrv;
66− diffutils = pkgs.diffutils.crossDrv;
67− gnused = pkgs.gnused.crossDrv;
68− gnugrep = pkgs.gnugrep.crossDrv;
69− gawk = pkgs.gawk.crossDrv;
70− gzip = pkgs.gzip.crossDrv;
71− bzip2 = pkgs.bzip2.crossDrv;
72− gnumake = pkgs.gnumake.crossDrv;
73− patch = pkgs.patch.crossDrv;
74− patchelf = pkgs.patchelf.crossDrv;
75− gcc = pkgs.gcc.crossDrv.cc;
76− gmpxx = pkgs.gmpxx.crossDrv;
77− mpfr = pkgs.mpfr.crossDrv;
78− zlib = pkgs.zlib.crossDrv;
79− libmpc = pkgs.libmpc.crossDrv;
80− binutils = pkgs.binutils.crossDrv;
81− libelf = pkgs.libelf.crossDrv;
58+ pkgs = pkgsFun ({inherit system;} // selectedCrossSystem);
59+
60+ inherit (pkgs.buildPackages) stdenv nukeReferences cpio binutilsCross;
61+
62+ glibc = pkgs.buildPackages.libcCross;
63+ bash = pkgs.bash;
64+ findutils = pkgs.findutils;
65+ diffutils = pkgs.diffutils;
66+ gnused = pkgs.gnused;
67+ gnugrep = pkgs.gnugrep;
68+ gawk = pkgs.gawk;
69+ gzip = pkgs.gzip;
70+ bzip2 = pkgs.bzip2;
71+ gnumake = pkgs.gnumake;
72+ patch = pkgs.patch;
73+ patchelf = pkgs.patchelf;
74+ gcc = pkgs.gcc.cc;
75+ gmpxx = pkgs.gmpxx;
76+ mpfr = pkgs.mpfr;
77+ zlib = pkgs.zlib;
78+ libmpc = pkgs.libmpc;
79+ binutils = pkgs.binutils;
80+ libelf = pkgs.libelf;
8281
8382 # Keep these versions in sync with the versions used in the current GCC!
84− isl = pkgs.isl_0_14.crossDrv;
83+ isl = pkgs.isl_0_14;
8584in
8685
8786rec {
@@ -116,7 +115,7 @@ rec {
116115
117116 stdenv.mkDerivation {
118117 name = "stdenv-bootstrap-tools-cross";
119− crossConfig = pkgsUnspliced.hostPlatform.config;
118+ crossConfig = pkgs.hostPlatform.config;
120119
121120 buildInputs = [nukeReferences cpio binutilsCross];
122121
@@ -174,7 +173,7 @@ rec {
174173 cp -d ${patch}/bin/* $out/bin
175174 cp ${patchelf}/bin/* $out/bin
176175
177− cp -d ${gnugrep.pcre.crossDrv.out}/lib/libpcre*.so* $out/lib # needed by grep
176+ cp -d ${gnugrep.pcre.out}/lib/libpcre*.so* $out/lib # needed by grep
178177
179178 # Copy what we need of GCC.
180179 cp -d ${gcc.out}/bin/gcc $out/bin
pkgs/top-level/release-cross.nix+36−36
@@ -14,17 +14,17 @@ let
1414
1515 /* Basic list of packages to cross-build */
1616 basicCrossDrv = {
17− gccCrossStageFinal = nativePlatforms;
18− bison.crossDrv = nativePlatforms;
19− busybox.crossDrv = nativePlatforms;
20− coreutils.crossDrv = nativePlatforms;
21− dropbear.crossDrv = nativePlatforms;
17+ bison = nativePlatforms;
18+ busybox = nativePlatforms;
19+ coreutils = nativePlatforms;
20+ dropbear = nativePlatforms;
2221 };
2322
2423 /* Basic list of packages to be natively built,
2524 but need a crossSystem defined to get meaning */
2625 basicNativeDrv = {
27− gdbCross.nativeDrv = nativePlatforms;
26+ buildPackages.gccCrossStageFinal = nativePlatforms;
27+ buildPackages.gdbCross = nativePlatforms;
2828 };
2929
3030 basic = basicCrossDrv // basicNativeDrv;
@@ -85,7 +85,7 @@ in
8585 openssl.system = "linux-generic32";
8686 };
8787 in mapTestOnCross crossSystem (basic // {
88− ubootSheevaplug.crossDrv = nativePlatforms;
88+ ubootSheevaplug = nativePlatforms;
8989 });
9090
9191
@@ -98,14 +98,14 @@ in
9898 platform = {};
9999 };
100100 in mapTestOnCross crossSystem {
101− coreutils.crossDrv = nativePlatforms;
102− boehmgc.crossDrv = nativePlatforms;
103− gmp.crossDrv = nativePlatforms;
104− guile_1_8.crossDrv = nativePlatforms;
105− libffi.crossDrv = nativePlatforms;
106− libtool.crossDrv = nativePlatforms;
107− libunistring.crossDrv = nativePlatforms;
108− windows.wxMSW.crossDrv = nativePlatforms;
101+ coreutils = nativePlatforms;
102+ boehmgc = nativePlatforms;
103+ gmp = nativePlatforms;
104+ guile_1_8 = nativePlatforms;
105+ libffi = nativePlatforms;
106+ libtool = nativePlatforms;
107+ libunistring = nativePlatforms;
108+ windows.wxMSW = nativePlatforms;
109109 };
110110
111111
@@ -119,14 +119,14 @@ in
119119 platform = {};
120120 };
121121 in mapTestOnCross crossSystem {
122− coreutils.crossDrv = nativePlatforms;
123− boehmgc.crossDrv = nativePlatforms;
124− gmp.crossDrv = nativePlatforms;
125− guile_1_8.crossDrv = nativePlatforms;
126− libffi.crossDrv = nativePlatforms;
127− libtool.crossDrv = nativePlatforms;
128− libunistring.crossDrv = nativePlatforms;
129− windows.wxMSW.crossDrv = nativePlatforms;
122+ coreutils = nativePlatforms;
123+ boehmgc = nativePlatforms;
124+ gmp = nativePlatforms;
125+ guile_1_8 = nativePlatforms;
126+ libffi = nativePlatforms;
127+ libtool = nativePlatforms;
128+ libunistring = nativePlatforms;
129+ windows.wxMSW = nativePlatforms;
130130 };
131131
132132
@@ -156,9 +156,9 @@ in
156156 };
157157 };
158158 in mapTestOnCross crossSystem {
159− coreutils.crossDrv = nativePlatforms;
160− ed.crossDrv = nativePlatforms;
161− patch.crossDrv = nativePlatforms;
159+ coreutils = nativePlatforms;
160+ ed = nativePlatforms;
161+ patch = nativePlatforms;
162162 };
163163
164164
@@ -182,16 +182,16 @@ in
182182 };
183183 };
184184 in mapTestOnCross crossSystem {
185− coreutils.crossDrv = nativePlatforms;
186− ed.crossDrv = nativePlatforms;
187− patch.crossDrv = nativePlatforms;
188− vim.crossDrv = nativePlatforms;
189− unzip.crossDrv = nativePlatforms;
190− ddrescue.crossDrv = nativePlatforms;
191− lynx.crossDrv = nativePlatforms;
192− patchelf.crossDrv = nativePlatforms;
193− binutils.crossDrv = nativePlatforms;
194− mpg123.crossDrv = nativePlatforms;
185+ coreutils = nativePlatforms;
186+ ed = nativePlatforms;
187+ patch = nativePlatforms;
188+ vim = nativePlatforms;
189+ unzip = nativePlatforms;
190+ ddrescue = nativePlatforms;
191+ lynx = nativePlatforms;
192+ patchelf = nativePlatforms;
193+ buildPackages.binutils = nativePlatforms;
194+ mpg123 = nativePlatforms;
195195 };
196196
197197
pkgs/top-level/release-lib.nix+2−3
@@ -76,9 +76,8 @@ rec {
7676 * parameter for allPackages, defining the target platform for cross builds,
7777 * and triggering the build of the host derivation (cross built - crossDrv). */
7878 mapTestOnCross = crossSystem: mapAttrsRecursive
79− (path: systems: testOnCross crossSystem systems (pkgs: addMetaAttrs
80− { maintainers = crossMaintainers; }
81− (getAttrFromPath path pkgs.splicedPackages)));
79+ (path: systems: testOnCross crossSystem systems
80+ (pkgs: addMetaAttrs { maintainers = crossMaintainers; } (getAttrFromPath path pkgs)));
8281
8382
8483 /* Recursively map a (nested) set of derivations to an isomorphic
pkgs/top-level/splice.nix−2
@@ -70,8 +70,6 @@ let
7070in
7171
7272{
73− splicedPackages = splicedPackages // { recurseForDerivations = false; };
74−
7573 # We use `callPackage' to be able to omit function arguments that can be
7674 # obtained `pkgs` or `buildPackages` and their `xorg` package sets. Use
7775 # `newScope' for sets of packages in `pkgs' (see e.g. `gnome' below).