nix-jupyter/flake.nix
Evie Litherland-Smith 5230b3c635 Initial commit
Setup flake for easily making a JupyterLab instance with access to a
given kernel
2024-04-23 15:02:35 +01:00

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;
};
};
}