diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-02-06 18:13:02 -0500 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2017-04-23 13:54:42 -0400 |
commit | af8f87a3a124c7db1506119b379d673d1982e4c9 (patch) | |
tree | 847e993c254039c4e0712536030d611fbf686ba7 | |
parent | 0feca1abb6ebca219ebd405e0e394aed5b100236 (diff) | |
download | nixlib-af8f87a3a124c7db1506119b379d673d1982e4c9.tar nixlib-af8f87a3a124c7db1506119b379d673d1982e4c9.tar.gz nixlib-af8f87a3a124c7db1506119b379d673d1982e4c9.tar.bz2 nixlib-af8f87a3a124c7db1506119b379d673d1982e4c9.tar.lz nixlib-af8f87a3a124c7db1506119b379d673d1982e4c9.tar.xz nixlib-af8f87a3a124c7db1506119b379d673d1982e4c9.tar.zst nixlib-af8f87a3a124c7db1506119b379d673d1982e4c9.zip |
top-level: Do not splice `pkgs`, `buildPackages` or `*Platform`
- `pkgs` is self-similar, and thus already spliced - `buildPackages` is an ingredient of splicing and should be kept as is - The platforms are not packages or package sets and couldn't be spliced There's probably other things that shouldn't be spliced too. The best long- term solution is simply to stop splicing altogether.
-rw-r--r-- | pkgs/top-level/splice.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/top-level/splice.nix b/pkgs/top-level/splice.nix index a22587d5b576..bb6fc47b1d2b 100644 --- a/pkgs/top-level/splice.nix +++ b/pkgs/top-level/splice.nix @@ -64,7 +64,11 @@ let splicedPackages = if actuallySplice - then splicer defaultBuildScope defaultRunScope + then splicer defaultBuildScope defaultRunScope // { + # These should never be spliced under any circumstances + inherit (pkgs) pkgs buildPackages + buildPlatform targetPlatform hostPlatform; + } else pkgs // pkgs.xorg; in |