aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/bash_kernel/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/bash_kernel/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/bash_kernel/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/bash_kernel/default.nix b/nixpkgs/pkgs/development/python-modules/bash_kernel/default.nix
index 191f0342674..9ac72a21fa7 100644
--- a/nixpkgs/pkgs/development/python-modules/bash_kernel/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/bash_kernel/default.nix
@@ -6,6 +6,7 @@
, isPy27
, python
, pexpect
+, bash
}:
buildPythonPackage rec {
@@ -26,6 +27,12 @@ buildPythonPackage rec {
})
];
+ postPatch = ''
+ substituteInPlace bash_kernel/kernel.py \
+ --replace "'bash'" "'${bash}/bin/bash'" \
+ --replace "\"bash\"" "'${bash}/bin/bash'"
+ '';
+
propagatedBuildInputs = [ ipykernel pexpect ];
# no tests