mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
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 = ''
|
||||
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'"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user