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
This commit is contained in:
Robert Scott 2017-05-25 20:56:25 +01:00 committed by Frederik Rietdijk
parent c10af9e744
commit 45ac7700fa

View file

@ -37,6 +37,9 @@
# generated binaries.
, makeWrapperArgs ? []
# Skip wrapping of python programs altogether
, dontWrapPythonPrograms ? false
, meta ? {}
, passthru ? {}
@ -69,7 +72,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "checkInputs"
doCheck = false;
doInstallCheck = doCheck;
postFixup = ''
postFixup = lib.optionalString (!dontWrapPythonPrograms) ''
wrapPythonPrograms
'' + lib.optionalString catchConflicts ''
# Check if we have two packages with the same name in the closure and fail.