Files
nixpkgs/pkgs/applications/editors/jupyter/default.nix
Luna Nova e99c9fba8b jupyter: inherit notebook meta rather than python3 meta
Fixes #495922 and brings joy to @mweinelt's notifications
2026-03-02 14:34:19 -08:00

26 lines
608 B
Nix

# Jupyter notebook with the given kernel definitions
{
python3,
jupyter-kernel,
definitions ? jupyter-kernel.default,
}:
let
jupyterPath = (jupyter-kernel.create { inherit definitions; });
jupyter-notebook =
(python3.buildEnv.override {
extraLibs = [ python3.pkgs.notebook ];
makeWrapperArgs = [ "--prefix JUPYTER_PATH : ${jupyterPath}" ];
}).overrideAttrs
(oldAttrs: {
inherit (python3.pkgs.notebook) version;
pname = "jupyter";
meta = python3.pkgs.notebook.meta // {
mainProgram = "jupyter";
};
});
in
jupyter-notebook