From f1873221c7bb46a54f7b14de66276f59741a6baf Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Fri, 5 Nov 2021 14:04:19 -0400 Subject: [PATCH] move jupyterlab variable --- flake.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 1f88b6f..defcbdf 100644 --- a/flake.nix +++ b/flake.nix @@ -40,18 +40,19 @@ apps = self.lib.forAllSystems (system: with nixpkgs.legacyPackages.${system}; - let - jupy = python3.withPackages (p: with p; [ jupyterlab ipython ]); - in { gnome-extensions = writeShellScriptBin "gnome-extensions" '' cat ${path}/pkgs/desktops/gnome/extensions/extensions.json | ${jq}/bin/jq -c '.[]|{name,ver:(.shell_version_map|keys)}' ''; - jupyterlab = writeShellScriptBin "jupyterlab" '' - exec ${jupy}/bin/python -m jupyterlab "$@" - ''; + jupyterlab = + let + jupy = python3.withPackages (p: with p; [ jupyterlab ipython ]); + in + writeShellScriptBin "jupyterlab" '' + exec ${jupy}/bin/python -m jupyterlab "$@" + ''; } ); };