pythonPackages.bash_kernel: refactor pinning bash package
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user