From 7f0704a6fe0a24e9620cf2098f4972810bee3374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Montero?= Date: Sun, 8 May 2022 16:46:12 -0600 Subject: [PATCH] =?UTF-8?q?a=C3=B1ade=20symbolic=20a=20jupyter=20shenv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shenvs/jupyter.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/shenvs/jupyter.nix b/shenvs/jupyter.nix index 6f89b6c..9ac4c06 100644 --- a/shenvs/jupyter.nix +++ b/shenvs/jupyter.nix @@ -8,15 +8,21 @@ pkgs: { sympy ]); jupyterPath = jupyter-kernel.create { definitions = { - octave = octave-kernel.definition; + octave = octave-kernel.definition; };}; in [ (jupyter.override { definitions = { - octave = octave-kernel.definition; + octave = let + withPackages = pkgs.octave.withPackages (ps: with ps; [ + symbolic + ]); + octave = withPackages.overrideAttrs (super: { inherit (pkgs.octave) version src; }); + kernel = octave-kernel.override { inherit octave; }; + in kernel.definition; }; - inherit python3; + inherit python3; }) ]; }