python3: fix impure /bin/sh call in subprocess
This commit is contained in:
parent
a1baa4f0bf
commit
900b2d5a6c
@ -151,6 +151,8 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
substituteInPlace Lib/subprocess.py \
|
||||||
|
--replace "'/bin/sh'" "'${bash}/bin/sh'"
|
||||||
'' + optionalString (x11Support && (tix != null)) ''
|
'' + optionalString (x11Support && (tix != null)) ''
|
||||||
substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
|
substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user