about summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/cpython
diff options
context:
space:
mode:
authorDaniƫl de Kok <me@danieldk.eu>2020-08-12 09:42:56 +0200
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2020-08-15 08:34:02 +0200
commit900b2d5a6c3fc150e7ef983fd7fb99a921585b22 (patch)
tree9b06595b136c32087e776ece417d24d7def329cf /pkgs/development/interpreters/python/cpython
parenta1baa4f0bfa10cfcb43265772ad2845d31af5134 (diff)
downloadnixlib-900b2d5a6c3fc150e7ef983fd7fb99a921585b22.tar
nixlib-900b2d5a6c3fc150e7ef983fd7fb99a921585b22.tar.gz
nixlib-900b2d5a6c3fc150e7ef983fd7fb99a921585b22.tar.bz2
nixlib-900b2d5a6c3fc150e7ef983fd7fb99a921585b22.tar.lz
nixlib-900b2d5a6c3fc150e7ef983fd7fb99a921585b22.tar.xz
nixlib-900b2d5a6c3fc150e7ef983fd7fb99a921585b22.tar.zst
nixlib-900b2d5a6c3fc150e7ef983fd7fb99a921585b22.zip
python3: fix impure /bin/sh call in subprocess
Diffstat (limited to 'pkgs/development/interpreters/python/cpython')
-rw-r--r--pkgs/development/interpreters/python/cpython/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix
index d26d060da72a..b06ea4dda485 100644
--- a/pkgs/development/interpreters/python/cpython/default.nix
+++ b/pkgs/development/interpreters/python/cpython/default.nix
@@ -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'"
   '';