Commit 86eb3a99 authored by natsukium's avatar natsukium Committed by Matthieu Coudron
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.
parent a03080d3
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