git.iko.soy/typeable/nixpkgs
on master help sign in
mkPythonDerivation: obey a dontWrapPythonPrograms attribute

This should allow a python derivation to disable possibly overzealous python program wrapping without having to override the whole fixupPhase

commit45ac7700fa6aeedc088124aab863a43d476512b8 authorRobert Scott <code@humanleg.org.uk> dateThu 25 May 2017, 20:56 (10 years ago) parentc10af9e
1 file changed+4−1
pkgs/development/interpreters/python/mk-python-derivation.nix+4−1
pkgs/development/interpreters/python/mk-python-derivation.nix+4−1
@@ -37,6 +37,9 @@
3737# generated binaries.
3838, makeWrapperArgs ? []
3939
40+# Skip wrapping of python programs altogether
41+, dontWrapPythonPrograms ? false
42+
4043, meta ? {}
4144
4245, passthru ? {}
@@ -69,7 +72,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "checkInputs"
6972 doCheck = false;
7073 doInstallCheck = doCheck;
7174
72− postFixup = ''
75+ postFixup = lib.optionalString (!dontWrapPythonPrograms) ''
7376 wrapPythonPrograms
7477 '' + lib.optionalString catchConflicts ''
7578 # Check if we have two packages with the same name in the closure and fail.