about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/jupyter/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/jupyter/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/editors/jupyter/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/applications/editors/jupyter/default.nix b/nixpkgs/pkgs/applications/editors/jupyter/default.nix
index 2bca120c1deb..57122d173a44 100644
--- a/nixpkgs/pkgs/applications/editors/jupyter/default.nix
+++ b/nixpkgs/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