diff --git a/pkgs/applications/editors/jupyter/default.nix b/pkgs/applications/editors/jupyter/default.nix index 2bca120c1debc..57122d173a441 100644 --- a/pkgs/applications/editors/jupyter/default.nix +++ b/pkgs/applications/editors/jupyter/default.nix @@ -6,13 +6,13 @@ }: let - jupyterPath = (jupyter-kernel.create { inherit definitions; }); - + jupyter-notebook = (python3.buildEnv.override { + extraLibs = [ python3.pkgs.notebook ]; + makeWrapperArgs = ["--set JUPYTER_PATH ${jupyterPath}"]; + }).overrideAttrs(oldAttrs: { + meta = oldAttrs.meta // { mainProgram = "jupyter-notebook"; }; + }); in -with python3.pkgs; toPythonModule ( - notebook.overridePythonAttrs(oldAttrs: { - makeWrapperArgs = ["--set JUPYTER_PATH ${jupyterPath}"]; - }) -) +jupyter-notebook