mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
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.
This commit is contained in:
parent
a03080d35e
commit
86eb3a994e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue