aboutsummaryrefslogtreecommitdiff
path: root/pkgs/top-level/splice.nix
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2017-02-06 18:13:02 -0500
committerJohn Ericson <Ericson2314@Yahoo.com>2017-04-23 13:54:42 -0400
commitaf8f87a3a124c7db1506119b379d673d1982e4c9 (patch)
tree847e993c254039c4e0712536030d611fbf686ba7 /pkgs/top-level/splice.nix
parent0feca1abb6ebca219ebd405e0e394aed5b100236 (diff)
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.
Diffstat (limited to 'pkgs/top-level/splice.nix')
-rw-r--r--pkgs/top-level/splice.nix6
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