File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 23
23
} ;
24
24
bashSh = pkgs . writeScriptBin "bash-notebook" ''
25
25
#! ${ pkgs . stdenv . shell }
26
- export PATH="${ pkgs . stdenv . lib . makeBinPath [ jupyter bash_kernel ] } "
26
+ export PATH="${ pkgs . stdenv . lib . makeBinPath [ jupyter bash_kernel pkgs . bash ] } "
27
27
${ pkgs . python3 . interpreter } -m bash_kernel.install && ${ jupyter } /bin/jupyter notebook
28
28
'' ;
29
+ bash-notebook = pkgs . runCommand "bash-notebook" { } ''
30
+ mkdir -p $out/bin
31
+ ln -s ${ bashSh } /bin/bash-notebook $out/bin/bash-notebook
32
+ '' ;
29
33
in
30
34
pkgs . buildEnv {
31
35
name = "bash-notebook-env" ;
32
- paths = [ jupyter bash_kernel ] ;
36
+ buildInputs = [ pkgs . makeWrapper ] ;
37
+ paths = [ jupyter bash_kernel bash-notebook ] ;
33
38
postBuild = ''
34
- . "${ pkgs . makeWrapper } /nix-support/setup-hook"
35
- ln -s ${ bashSh } /bin/bash-notebook $out/bin/.
36
39
for prg in $out/bin"/"*;do
37
40
wrapProgram $prg --set PYTHONPATH "$(echo ${ jupyter } /lib/*/site-packages)"
38
41
done
You can’t perform that action at this time.
0 commit comments