Evie Litherland-Smith
5230b3c635
Setup flake for easily making a JupyterLab instance with access to a given kernel
27 lines
745 B
Nix
27 lines
745 B
Nix
{
|
|
description = "Utilities to setup JupyterLab with given kernels available";
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
poetry2nix = {
|
|
url = "github:nix-community/poetry2nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
poetry2nix,
|
|
}: let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {inherit system;};
|
|
in {
|
|
packages.${system} = {
|
|
poetry2nix = poetry2nix.lib.mkPoetry2Nix {inherit pkgs;};
|
|
catppuccin_jupyterlab = import ./catppuccin_jupyterlab/default.nix;
|
|
mkIpythonKernel = import ./ipykernel.nix;
|
|
mkJupyterShell = import ./jupyter.nix;
|
|
default = self.packages.${system}.mkJupyterShell;
|
|
};
|
|
};
|
|
}
|