mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
pythonPackages.bash_kernel: refactor pinning bash package
This commit is contained in:
parent
eacff247fd
commit
b1934ec6e9
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue