move jupyterlab variable

This commit is contained in:
Sean Buckley 2021-11-05 14:04:19 -04:00
parent 45bce4a081
commit f1873221c7

View file

@ -40,16 +40,17 @@
apps = self.lib.forAllSystems (system: apps = self.lib.forAllSystems (system:
with nixpkgs.legacyPackages.${system}; with nixpkgs.legacyPackages.${system};
let
jupy = python3.withPackages (p: with p; [ jupyterlab ipython ]);
in
{ {
gnome-extensions = writeShellScriptBin "gnome-extensions" '' gnome-extensions = writeShellScriptBin "gnome-extensions" ''
cat ${path}/pkgs/desktops/gnome/extensions/extensions.json | cat ${path}/pkgs/desktops/gnome/extensions/extensions.json |
${jq}/bin/jq -c '.[]|{name,ver:(.shell_version_map|keys)}' ${jq}/bin/jq -c '.[]|{name,ver:(.shell_version_map|keys)}'
''; '';
jupyterlab = writeShellScriptBin "jupyterlab" '' jupyterlab =
let
jupy = python3.withPackages (p: with p; [ jupyterlab ipython ]);
in
writeShellScriptBin "jupyterlab" ''
exec ${jupy}/bin/python -m jupyterlab "$@" exec ${jupy}/bin/python -m jupyterlab "$@"
''; '';
} }