diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2016-12-03 17:21:07 -0800 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2016-12-03 17:21:07 -0800 |
commit | 5c6234a7d3f0b430d7dc941dc1ab059c42729611 (patch) | |
tree | 2bfcee5413e6d751274dd57d378a179c0dcb5fd3 /pkgs/top-level/default.nix | |
parent | 4751d9e5ad124284dbd719d3a58f42d56f1b9514 (diff) | |
download | nixpkgs-5c6234a7d3f0b430d7dc941dc1ab059c42729611.tar nixpkgs-5c6234a7d3f0b430d7dc941dc1ab059c42729611.tar.gz nixpkgs-5c6234a7d3f0b430d7dc941dc1ab059c42729611.tar.bz2 nixpkgs-5c6234a7d3f0b430d7dc941dc1ab059c42729611.tar.lz nixpkgs-5c6234a7d3f0b430d7dc941dc1ab059c42729611.tar.xz nixpkgs-5c6234a7d3f0b430d7dc941dc1ab059c42729611.tar.zst nixpkgs-5c6234a7d3f0b430d7dc941dc1ab059c42729611.zip |
top-level: Allow manually specifying a stdenv, and fix stdenv tests
- The darwin test can now force the use of the freshly-booted darwin stdenv - The linux test now passes enough dummy arguments This may make debugging harder, if so, check out #20889
Diffstat (limited to 'pkgs/top-level/default.nix')
-rw-r--r-- | pkgs/top-level/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index a1f3a1c38c5..31c51215676 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -23,6 +23,10 @@ , # Allow a configuration attribute set to be passed in as an argument. config ? {} +, # The standard environment for building packages, or rather a function + # providing it. See below for the arguments given to that function. + stdenv ? assert false; null + , crossSystem ? null , platform ? assert false; null } @ args: @@ -72,7 +76,7 @@ in let inherit lib nixpkgsFun; } // newArgs); - stdenv = import ../stdenv { + stdenv = (args.stdenv or (import ../stdenv)) { inherit lib allPackages system platform crossSystem config; }; |