about summary refs log tree commit diff
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2019-03-19 17:38:55 +0100
committerRobert Schütz <rschuetz17@gmail.com>2019-03-19 17:38:55 +0100
commit8403965d014b998711df5f870d98739ffd69fcd1 (patch)
treee2147a78776263fee22fb99493ae8299ea13ed47
parent0cbe2fa18cd5c3d788b7045a76984241227f20d0 (diff)
downloadnixlib-8403965d014b998711df5f870d98739ffd69fcd1.tar
nixlib-8403965d014b998711df5f870d98739ffd69fcd1.tar.gz
nixlib-8403965d014b998711df5f870d98739ffd69fcd1.tar.bz2
nixlib-8403965d014b998711df5f870d98739ffd69fcd1.tar.lz
nixlib-8403965d014b998711df5f870d98739ffd69fcd1.tar.xz
nixlib-8403965d014b998711df5f870d98739ffd69fcd1.tar.zst
nixlib-8403965d014b998711df5f870d98739ffd69fcd1.zip
pythonPackages.invoke: patch the default bash path (#57908)
Use a reasonable path :)
-rw-r--r--pkgs/development/python-modules/invoke/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/invoke/default.nix b/pkgs/development/python-modules/invoke/default.nix
index 0438a035501b..d2839d32b0a9 100644
--- a/pkgs/development/python-modules/invoke/default.nix
+++ b/pkgs/development/python-modules/invoke/default.nix
@@ -1,4 +1,5 @@
 { lib
+, bash
 , buildPythonPackage
 , fetchPypi
 }:
@@ -12,6 +13,10 @@ buildPythonPackage rec {
     sha256 = "1dr1a5qbb9z5hyns4zk086zm0iqbms33zv0s1296wx502y7jyjfw";
   };
 
+  patchPhase = ''
+    sed -e 's|/bin/bash|${bash}/bin/bash|g' -i invoke/config.py
+  '';
+
   # errors with vendored libs
   doCheck = false;