mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
move jupyterlab variable
This commit is contained in:
parent
45bce4a081
commit
f1873221c7
1 changed files with 7 additions and 6 deletions
13
flake.nix
13
flake.nix
|
@ -40,18 +40,19 @@
|
||||||
|
|
||||||
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 =
|
||||||
exec ${jupy}/bin/python -m jupyterlab "$@"
|
let
|
||||||
'';
|
jupy = python3.withPackages (p: with p; [ jupyterlab ipython ]);
|
||||||
|
in
|
||||||
|
writeShellScriptBin "jupyterlab" ''
|
||||||
|
exec ${jupy}/bin/python -m jupyterlab "$@"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue