Unverified Commit 68dc900c authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #269087 from NixOS/backport-268078-to-release-23.11

[Backport release-23.11] jupyter: fix runtime error
parents 2b6bc000 52018b53
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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