Skip to content

Commit

Permalink
Update: bumpup jupyterlab
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Mar 5, 2023
1 parent ea9536e commit f13ff5d
Show file tree
Hide file tree
Showing 4 changed files with 902 additions and 440 deletions.
2 changes: 1 addition & 1 deletion lib/jupyter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
python ? pkgs.python3,
editablePackageSources ? {},
extraPackages ? (ps: []),
preferWheels ? false,
preferWheels ? true,
}: let
jupyterlabEnvBase =
if poetryEnv == null
Expand Down
11 changes: 1 addition & 10 deletions lib/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,11 @@ pkgs: let
});
};

# A fix is on the way soon, https://github.com/nix-community/poetry2nix/pull/787
preOverlay = final: prev: {
babel = null;
Babel = null;
babel_ = prev.babel.overridePythonAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [final.setuptools];
});
};
preOverlay = final: prev: {};

postOverlay = final: prev:
{}
// {
babel = prev.babel_;
Babel = prev.babel_;
testbook = prev.testbook.overridePythonAttrs (old: {
postPatch = ''
mkdir ./tmp
Expand Down
5 changes: 4 additions & 1 deletion modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,13 @@ in {
config = {
build = mkJupyterlab {
jupyterlabEnvArgs = {
pkgs = config.nixpkgs;
pkgs = config.nixpkgs.appendOverlays [
self.inputs.poetry2nix.overlay
];
inherit
(config.jupyterlab.jupyterlabEnvArgs)
poetryEnv
extraPackages
;
};

Expand Down
Loading

0 comments on commit f13ff5d

Please sign in to comment.