python3: fix impure /bin/sh call in subprocess

This commit is contained in:
Daniël de Kok 2020-08-12 09:42:56 +02:00 committed by Frederik Rietdijk
parent a1baa4f0bf
commit 900b2d5a6c

View File

@ -151,6 +151,8 @@ in with passthru; stdenv.mkDerivation {
];
postPatch = ''
substituteInPlace Lib/subprocess.py \
--replace "'/bin/sh'" "'${bash}/bin/sh'"
'' + optionalString (x11Support && (tix != null)) ''
substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
'';