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
1 changed files with 4 additions and 1 deletions

View File

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