summary refs log tree commit diff
path: root/pkgs/stdenv/custom
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2016-11-27 12:37:45 -0800
committerJohn Ericson <jericson@galois.com>2016-11-30 19:11:03 -0500
commit39753f5360134f1aab1a949260374a876c0983eb (patch)
tree02dc06e81131d21218526443b19b96773a75896d /pkgs/stdenv/custom
parentd240a0da1ab03ef8838553229b72b9b37a0ef3e7 (diff)
downloadnixpkgs-39753f5360134f1aab1a949260374a876c0983eb.tar
nixpkgs-39753f5360134f1aab1a949260374a876c0983eb.tar.gz
nixpkgs-39753f5360134f1aab1a949260374a876c0983eb.tar.bz2
nixpkgs-39753f5360134f1aab1a949260374a876c0983eb.tar.lz
nixpkgs-39753f5360134f1aab1a949260374a876c0983eb.tar.xz
nixpkgs-39753f5360134f1aab1a949260374a876c0983eb.tar.zst
nixpkgs-39753f5360134f1aab1a949260374a876c0983eb.zip
top-level: Close over fewer arguments for stdenv stages
This makes the flow of data easier to understand. There's little downside
because the args in question are already inspected by the stdenvs.

cross-compiling in particular is simpler because we don't need to worry
about overriding the config closed over by `allPackages`.
Diffstat (limited to 'pkgs/stdenv/custom')
-rw-r--r--pkgs/stdenv/custom/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/stdenv/custom/default.nix b/pkgs/stdenv/custom/default.nix
index e8f203d69cf..174b8593c0a 100644
--- a/pkgs/stdenv/custom/default.nix
+++ b/pkgs/stdenv/custom/default.nix
@@ -1,10 +1,13 @@
-{ system, allPackages, platform, crossSystem, config, ... } @ args:
+{ lib, allPackages
+, system, platform, crossSystem, config
+}:
 
 rec {
-  vanillaStdenv = import ../. (args // {
+  vanillaStdenv = import ../. {
+    inherit lib allPackages system platform crossSystem;
     # Remove config.replaceStdenv to ensure termination.
     config = builtins.removeAttrs config [ "replaceStdenv" ];
-  });
+  };
 
   buildPackages = allPackages {
     inherit system platform crossSystem config;