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
wip/yesman
Robert Scott 7 years ago committed by Frederik Rietdijk
parent c10af9e744
commit 45ac7700fa
  1. 5
      pkgs/development/interpreters/python/mk-python-derivation.nix

@ -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.

Loading…
Cancel
Save