summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/octave
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2021-01-23 10:47:37 +0200
committerDoron Behar <doron.behar@gmail.com>2021-01-23 10:52:19 +0200
commitf9c6e07c67e9196ed1f134b604c5683167a829e0 (patch)
tree25116119adaa84b8df83c7760459411cd58f45ab /pkgs/development/interpreters/octave
parent4affc40a50dbabf2216176307a507b9225e01be7 (diff)
treewide: Remove usages of stdenv.lib by @doronbehar
Per: https://github.com/NixOS/nixpkgs/issues/108938
Diffstat (limited to 'pkgs/development/interpreters/octave')
-rw-r--r--pkgs/development/interpreters/octave/default.nix45
1 files changed, 23 insertions, 22 deletions
diff --git a/pkgs/development/interpreters/octave/default.nix b/pkgs/development/interpreters/octave/default.nix
index 7dedf79c340f..6ad25d24eae6 100644
--- a/pkgs/development/interpreters/octave/default.nix
+++ b/pkgs/development/interpreters/octave/default.nix
@@ -1,4 +1,5 @@
{ stdenv
+, lib
# Note: either stdenv.mkDerivation or, for octaveFull, the qt-5 mkDerivation
# with wrapQtAppsHook (comes from libsForQt5.callPackage)
, mkDerivation
@@ -124,21 +125,21 @@ in mkDerivation rec {
libwebp
gl2ps
]
- ++ stdenv.lib.optionals enableQt [
+ ++ lib.optionals enableQt [
qtbase
qtsvg
qscintilla
]
- ++ stdenv.lib.optionals (ghostscript != null) [ ghostscript ]
- ++ stdenv.lib.optionals (hdf5 != null) [ hdf5 ]
- ++ stdenv.lib.optionals (glpk != null) [ glpk ]
- ++ stdenv.lib.optionals (suitesparse != null) [ suitesparse' ]
- ++ stdenv.lib.optionals (enableJava) [ jdk ]
- ++ stdenv.lib.optionals (sundials != null) [ sundials ]
- ++ stdenv.lib.optionals (gnuplot != null) [ gnuplot ]
- ++ stdenv.lib.optionals (python != null) [ python ]
- ++ stdenv.lib.optionals (!stdenv.isDarwin) [ libGL libGLU libX11 ]
- ++ stdenv.lib.optionals stdenv.isDarwin [
+ ++ lib.optionals (ghostscript != null) [ ghostscript ]
+ ++ lib.optionals (hdf5 != null) [ hdf5 ]
+ ++ lib.optionals (glpk != null) [ glpk ]
+ ++ lib.optionals (suitesparse != null) [ suitesparse' ]
+ ++ lib.optionals (enableJava) [ jdk ]
+ ++ lib.optionals (sundials != null) [ sundials ]
+ ++ lib.optionals (gnuplot != null) [ gnuplot ]
+ ++ lib.optionals (python != null) [ python ]
+ ++ lib.optionals (!stdenv.isDarwin) [ libGL libGLU libX11 ]
+ ++ lib.optionals stdenv.isDarwin [
libiconv
darwin.apple_sdk.frameworks.Accelerate
darwin.apple_sdk.frameworks.Cocoa
@@ -152,9 +153,9 @@ in mkDerivation rec {
fftwSinglePrec
texinfo
]
- ++ stdenv.lib.optionals (sundials != null) [ sundials ]
- ++ stdenv.lib.optionals enableJIT [ llvm ]
- ++ stdenv.lib.optionals enableQt [
+ ++ lib.optionals (sundials != null) [ sundials ]
+ ++ lib.optionals enableJIT [ llvm ]
+ ++ lib.optionals enableQt [
qtscript
qttools
]
@@ -172,11 +173,11 @@ in mkDerivation rec {
"--with-lapack=lapack"
(if use64BitIdx then "--enable-64" else "--disable-64")
]
- ++ stdenv.lib.optionals stdenv.isDarwin [ "--enable-link-all-dependencies" ]
- ++ stdenv.lib.optionals enableReadline [ "--enable-readline" ]
- ++ stdenv.lib.optionals stdenv.isDarwin [ "--with-x=no" ]
- ++ stdenv.lib.optionals enableQt [ "--with-qt=5" ]
- ++ stdenv.lib.optionals enableJIT [ "--enable-jit" ]
+ ++ lib.optionals stdenv.isDarwin [ "--enable-link-all-dependencies" ]
+ ++ lib.optionals enableReadline [ "--enable-readline" ]
+ ++ lib.optionals stdenv.isDarwin [ "--with-x=no" ]
+ ++ lib.optionals enableQt [ "--with-qt=5" ]
+ ++ lib.optionals enableJIT [ "--enable-jit" ]
;
# Keep a copy of the octave tests detailed results in the output
@@ -198,13 +199,13 @@ in mkDerivation rec {
meta = {
homepage = "https://www.gnu.org/software/octave/";
- license = stdenv.lib.licenses.gpl3Plus;
- maintainers = with stdenv.lib.maintainers; [ raskin doronbehar ];
+ license = lib.licenses.gpl3Plus;
+ maintainers = with lib.maintainers; [ raskin doronbehar ];
description = "Scientific Pragramming Language";
# https://savannah.gnu.org/bugs/?func=detailitem&item_id=56425 is the best attempt to fix JIT
broken = enableJIT;
platforms = if overridePlatforms == null then
- (with stdenv.lib; platforms.linux ++ platforms.darwin)
+ (lib.platforms.linux ++ lib.platforms.darwin)
else overridePlatforms;
};
}