-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
50 lines (49 loc) · 1.21 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
inputs = {
};
outputs = {
self,
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages.${system};
python = pkgs.python3;
jdk = pkgs.jdk17_headless;
in rec {
formatter = pkgs.alejandra;
packages = {
inherit python jdk;
jupyter = python.pkgs.jupyter;
rise = pkgs.callPackage ./pkgs/rise.nix {
inherit python;
};
java-kernel = pkgs.callPackage ./pkgs/java-kernel.nix {
inherit python;
inherit jdk;
};
bash-kernel = python.pkgs.bash_kernel.override {
python = python.withPackages (ps: [ps.bash_kernel]);
};
jupyter-runner = pkgs.callPackage ./pkgs/runner.nix {
inherit python;
env = {
IN_JUPYTER_ENV = 1;
};
extraPkgs = with packages; [
jdk
];
pythonPkgs = ps:
with packages; [
rise
java-kernel
bash-kernel
];
};
default = packages.jupyter-runner;
};
}
);
}