Commit 52018b53 authored by natsukium's avatar natsukium Committed by github-actions[bot]
Browse files

jupyter: fix runtime error

fixed a bug reported in https://github.com/NixOS/nixpkgs/issues/255923

it occurred because the python runtime environment did not include the
jupyter share, etc directories.

(cherry picked from commit 43802570a91153dd5880d7ccdf5d663789fa0847)
parent 2b6bc000
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