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:
parent
c10af9e744
commit
45ac7700fa
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue