Skip to content

Commit

Permalink
octave-packages: inherit the same python octave is using
Browse files Browse the repository at this point in the history
Partly in response to:
#108562 (comment)
  • Loading branch information
KarlJoad committed Jan 7, 2021
1 parent e1c449e commit 4da2872
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions pkgs/development/interpreters/octave/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ let
inherit pkgs;
inherit (pkgs) lib stdenv fetchurl newScope;
octave = self;
inherit blas lapack gfortran texinfo gnuplot;
python3 = pkgs.python3;
python3Packages = pkgs.python3Packages;
inherit blas lapack gfortran python texinfo gnuplot;
inherit enableJava jdk;
nettle = pkgs.nettle;
};
Expand Down
6 changes: 3 additions & 3 deletions pkgs/top-level/octave-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
, octave
, lapack, blas
, gfortran
, python3
, python3Packages
# Use the same python that octave is using
, python
# Use the same Java that octave is using
, enableJava
, jdk
Expand Down Expand Up @@ -81,7 +81,7 @@ in rec {
src = pkgs.python2Packages.sympy.src;
});
};
in python3.override {inherit packageOverrides; self = overridenPython; };
in python.override {inherit packageOverrides; self = overridenPython; };
in overridenPython.withPackages (ps: [
ps.sympy
ps.mpmath
Expand Down

0 comments on commit 4da2872

Please sign in to comment.