From b052b741f4682e9872fbe9cb9086e11495e80006 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 26 Mar 2019 00:40:40 -0400 Subject: [PATCH] all-packages: try `with`ing spliced packages. This is an experiment. On one hand, it should unbreak some cross things, on the other, if `inherit` is used for things other than overriding it will lead to "doubly spliced" packages, which is an insane mess. --- pkgs/top-level/all-packages.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d283c73ffc759..e4fdc662838e2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8,7 +8,11 @@ { lib, noSysDirs, config, overlays }: res: pkgs: super: -with pkgs; +# Using `__splicedPackages` makes simple overriding not mess up cross. +# We'd really like to get rid of splicing and `__splicedPackages` should +# remain thought of as an unstable attribute. But this makes the status +# quo more tolerable. +with pkgs.__splicedPackages; let self =