@@ -7,10 +7,12 @@ let self = rec {
7
7
8
8
# python packages
9
9
10
- pythonPackages = ( import ./setup.nix {
10
+ python = ( import ./setup.nix {
11
11
inherit pkgs ;
12
12
pythonPackages = pkgs . python3Packages ;
13
- } ) . targetPython . pkgs ;
13
+ } ) . targetPython ;
14
+
15
+ pythonPackages = python . pkgs ;
14
16
15
17
sikulilibrary = ( import ./pkgs/sikulixlibrary {
16
18
inherit pkgs pythonPackages ;
@@ -104,21 +106,21 @@ let self = rec {
104
106
mkdir -p $out/share/jupyter/jupyter_notebook_config.d
105
107
106
108
ln -s ${ jupyter_nbconfig } $out/share/jupyter/nbconfig
107
- ln -s ${ jupyter-contrib-nbextensions } /${ pythonPackages . python . sitePackages } /jupyter-contrib-nbextensions/nbextensions/* $out/share/jupyter/nbextensions
108
- ln -s ${ rise } /${ pythonPackages . python . sitePackages } /rise/static $out/share/jupyter/nbextensions/rise
109
+ ln -s ${ jupyter-contrib-nbextensions } /${ python . sitePackages } /jupyter-contrib-nbextensions/nbextensions/* $out/share/jupyter/nbextensions
110
+ ln -s ${ rise } /${ python . sitePackages } /rise/static $out/share/jupyter/nbextensions/rise
109
111
ln -s ${ vim_binding } $out/share/jupyter/nbextensions/vim_binding
110
112
ln -s ${ widgetsnbextension } /share/jupyter/nbextensions/* $out/share/jupyter/nbextensions
111
113
112
- ${ pythonPackages . python . withPackages ( ps : with ps ; [ robotkernel ] ) } /bin/python -m robotkernel.install --prefix=$out
113
- cp -R ${ pythonPackages . python . withPackages ( ps : with ps ; [ robotkernel ] ) } /etc/jupyter/jupyter_notebook_config.d/* $out/share/jupyter/jupyter_notebook_config.d
114
+ ${ python . withPackages ( ps : with ps ; [ robotkernel ] ) } /bin/python -m robotkernel.install --prefix=$out
115
+ cp -R ${ python . withPackages ( ps : with ps ; [ robotkernel ] ) } /etc/jupyter/jupyter_notebook_config.d/* $out/share/jupyter/jupyter_notebook_config.d
114
116
115
117
JUPYTER_CONFIG_DIR=$out/share/jupyter \
116
- PATH=${ pythonPackages . python . withPackages ( ps : with ps ; [ jupyter-starters ] ) } /bin \
117
- ${ pythonPackages . python . withPackages ( ps : with ps ; [ jupyter-starters ] ) } /bin/jupyter serverextension enable --py jupyter_starters
118
+ PATH=${ python . withPackages ( ps : with ps ; [ jupyter-starters ] ) } /bin \
119
+ ${ python . withPackages ( ps : with ps ; [ jupyter-starters ] ) } /bin/jupyter serverextension enable --py jupyter_starters
118
120
119
121
JUPYTER_CONFIG_DIR=$out/share/jupyter \
120
- PATH=${ pythonPackages . python . withPackages ( ps : with ps ; [ notebook jupytext ] ) } /bin \
121
- ${ pythonPackages . python . withPackages ( ps : with ps ; [ notebook jupytext ] ) } /bin/jupyter serverextension enable jupytext
122
+ PATH=${ python . withPackages ( ps : with ps ; [ notebook jupytext ] ) } /bin \
123
+ ${ python . withPackages ( ps : with ps ; [ notebook jupytext ] ) } /bin/jupyter serverextension enable jupytext
122
124
123
125
echo "import rise" >> $out/share/jupyter/jupyter_notebook_config.py
124
126
@@ -148,8 +150,8 @@ pkgs.stdenv.mkDerivation rec {
148
150
++ ( with pkgs ; lib . optionals sikuli [ jre8 ] ) ;
149
151
shellHook = ''
150
152
mkdir -p $(pwd)/.jupyter
151
- cp -R ${ jupyter_config_dir } /share/jupyter/* $(pwd)/.jupyter
152
153
chmod u+w -R $(pwd)/.jupyter
154
+ cp -R ${ jupyter_config_dir } /share/jupyter/* $(pwd)/.jupyter
153
155
export JUPYTER_CONFIG_DIR=$(pwd)/.jupyter
154
156
export JUPYTER_PATH=$(pwd)/.jupyter
155
157
export JUPYTER_DATA_DIR=$(pwd)/.jupyter
0 commit comments