Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 58 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, buildPythonPackage, fetchPypi, fetchpatch, flit-core, ipykernel, python, pexpect, bash, substituteAll}:
buildPythonPackage rec { pname = "bash-kernel"; version = "0.9.3"; pyproject = true;
src = fetchPypi { pname = "bash_kernel"; inherit version; hash = "sha256-n3oDgRyn2csfv/gIIjfPBFC5cYIlL9C4BYeha2XmbVg="; };
patches = [ (substituteAll { src = ./bash-path.patch; bash = lib.getExe bash; }) ];
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ ipykernel pexpect ];
preBuild = '' export HOME=$TMPDIR '';
postInstall = '' ${python.pythonOnBuildForHost.interpreter} -m bash_kernel.install --prefix $out '';
# no tests doCheck = false;
meta = with lib; { description = "Bash Kernel for Jupyter"; homepage = "https://github.com/takluyver/bash_kernel"; changelog = "https://github.com/takluyver/bash_kernel/releases/tag/${version}"; license = licenses.bsd3; maintainers = with maintainers; [ zimbatm ]; };}