summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-04-24 21:10:25 +0200
committerJan Tojnar <jtojnar@gmail.com>2019-04-24 22:27:06 +0200
commit83914f2c562a7eac520e8523b7fd365f6b0f923e (patch)
tree82818e61d3ddd7ee39235a8680dee8bbfc694672
parentb8243d104f63e83eb7bf799e89a5d93d0a2edeac (diff)
downloadnixpkgs-83914f2c562a7eac520e8523b7fd365f6b0f923e.tar
nixpkgs-83914f2c562a7eac520e8523b7fd365f6b0f923e.tar.gz
nixpkgs-83914f2c562a7eac520e8523b7fd365f6b0f923e.tar.bz2
nixpkgs-83914f2c562a7eac520e8523b7fd365f6b0f923e.tar.lz
nixpkgs-83914f2c562a7eac520e8523b7fd365f6b0f923e.tar.xz
nixpkgs-83914f2c562a7eac520e8523b7fd365f6b0f923e.tar.zst
nixpkgs-83914f2c562a7eac520e8523b7fd365f6b0f923e.zip
buildPython*: allow overriding strictDeps
-rw-r--r--pkgs/development/interpreters/python/mk-python-derivation.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix
index b7477c9b7b7..d986490310b 100644
--- a/pkgs/development/interpreters/python/mk-python-derivation.nix
+++ b/pkgs/development/interpreters/python/mk-python-derivation.nix
@@ -33,6 +33,9 @@
 # DEPRECATED: use propagatedBuildInputs
 , pythonPath ? []
 
+# Enabled to detect some (native)BuildInputs mistakes
+, strictDeps ? true
+
 # used to disable derivation, useful for specific python versions
 , disabled ? false
 
@@ -87,8 +90,7 @@ let self = toPythonModule (python.stdenv.mkDerivation (builtins.removeAttrs attr
   # Propagate python and setuptools. We should stop propagating setuptools.
   propagatedBuildInputs = propagatedBuildInputs ++ [ python setuptools ];
 
-  # Enabled to detect some (native)BuildInputs mistakes
-  strictDeps = true;
+  inherit strictDeps;
 
   LANG = "${if python.stdenv.isDarwin then "en_US" else "C"}.UTF-8";