add jupyterlab app

This commit is contained in:
Sean Buckley 2021-08-05 15:58:27 -04:00
parent 65a9c2bace
commit 8cecf8d1dc

View file

@ -48,10 +48,15 @@
with nixpkgs.legacyPackages.${system}; with nixpkgs.legacyPackages.${system};
let let
binScript = x: writeShellScriptBin "script" "exec ${x}"; binScript = x: writeShellScriptBin "script" "exec ${x}";
jupy = python3.withPackages (p: with p; [ jupyterlab ipython ]);
in in
{ {
luks-mirror = binScript ./misc/luks-mirror.sh; luks-mirror = binScript ./misc/luks-mirror.sh;
luks-single = binScript ./misc/luks-single.sh; luks-single = binScript ./misc/luks-single.sh;
jupyterlab = writeShellScriptBin "jupyterlab" ''
exec ${jupy}/bin/python -m jupyterlab "$@"
'';
} }
); );
}; };