diff options
-rw-r--r-- | maintainers/maintainer-list.nix | 6 | ||||
-rw-r--r-- | pkgs/applications/networking/browsers/brave/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/interpreters/elixir/1.10.nix | 4 | ||||
-rw-r--r-- | pkgs/development/interpreters/octave/default.nix | 151 | ||||
-rw-r--r-- | pkgs/development/libraries/sundials/2.x.nix | 61 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/dum/default.nix | 17 | ||||
-rw-r--r-- | pkgs/development/python-modules/hg-evolve/default.nix | 24 | ||||
-rw-r--r-- | pkgs/development/tools/gnulib/default.nix | 6 | ||||
-rw-r--r-- | pkgs/tools/X11/xprintidle-ng/default.nix | 8 | ||||
-rw-r--r-- | pkgs/tools/compression/lbzip2/default.nix | 20 | ||||
-rw-r--r-- | pkgs/tools/filesystems/glusterfs/default.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/misc/grub/2.0x.nix | 5 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 32 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
14 files changed, 261 insertions, 83 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 87da8503255c..6de84f4982df 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -8145,6 +8145,12 @@ email = "ngerstle@gmail.com"; github = "ngerstle"; }; + xavierzwirtz = { + email = "me@xavierzwirtz.com"; + github = "xavierzwirtz"; + githubId = 474343; + name = "Xavier Zwirtz"; + }; } diff --git a/pkgs/applications/networking/browsers/brave/default.nix b/pkgs/applications/networking/browsers/brave/default.nix index 53d58334b86f..63d56a48038c 100644 --- a/pkgs/applications/networking/browsers/brave/default.nix +++ b/pkgs/applications/networking/browsers/brave/default.nix @@ -82,11 +82,11 @@ in stdenv.mkDerivation rec { pname = "brave"; - version = "1.3.118"; + version = "1.4.95"; src = fetchurl { url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb"; - sha256 = "1pmz10h35fm54453h7m0qiynyfpfmwaicmwzs41c4h8xavqgr6mb"; + sha256 = "1a7rk4r7phlf1y3ap3942z5sfvb6i4qglvq06qqhz49wq1wbgvq1"; }; dontConfigure = true; diff --git a/pkgs/development/interpreters/elixir/1.10.nix b/pkgs/development/interpreters/elixir/1.10.nix index 7f4162cade8f..afab770da353 100644 --- a/pkgs/development/interpreters/elixir/1.10.nix +++ b/pkgs/development/interpreters/elixir/1.10.nix @@ -3,7 +3,7 @@ # How to obtain `sha256`: # nix-prefetch-url --unpack https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz mkDerivation { - version = "1.10.1"; - sha256 = "07iccn90yp11ms58mwkwd9ixd9vma0025l9zm6l7y0jjzrj3vycy"; + version = "1.10.2"; + sha256 = "04yi1hljq7ii9flh6pmb5411z7q1bdq9f9sq8323k9hm1f5jwkx6"; minimumOTPVersion = "21"; } diff --git a/pkgs/development/interpreters/octave/default.nix b/pkgs/development/interpreters/octave/default.nix index f0f80f758548..b32d15b2a1f9 100644 --- a/pkgs/development/interpreters/octave/default.nix +++ b/pkgs/development/interpreters/octave/default.nix @@ -1,8 +1,54 @@ -{ stdenv, fetchurl, gfortran, readline, ncurses, perl, flex, texinfo, qhull -, libsndfile, portaudio, libX11, graphicsmagick, pcre, pkgconfig, libGL, libGLU, fltk -, fftw, fftwSinglePrec, zlib, curl, qrupdate, openblas, arpack, libwebp, gl2ps -, qt ? null, qscintilla ? null, ghostscript ? null, llvm ? null, hdf5 ? null,glpk ? null -, suitesparse ? null, gnuplot ? null, jdk ? null, python ? null, overridePlatforms ? null +{ stdenv +, fetchurl +, gfortran +, ncurses +, perl +, flex +, texinfo +, qhull +, libsndfile +, portaudio +, libX11 +, graphicsmagick +, pcre +, pkgconfig +, libGL +, libGLU +, fltk +# Both are needed for discrete Fourier transform +, fftw +, fftwSinglePrec +, zlib +, curl +, qrupdate +, openblas +, arpack +, libwebp +, gl2ps +, ghostscript ? null +, hdf5 ? null +, glpk ? null +, suitesparse ? null +, gnuplot ? null +# - Include support for GNU readline: +, enableReadline ? true +, readline ? null +# - Build Java interface: +, enableJava ? true +, jdk ? null +, python ? null +, overridePlatforms ? null +, sundials_2 ? null +# - Build Octave Qt GUI: +, enableQt ? false +, qtbase ? null +, qtsvg ? null +, qtscript ? null +, qscintilla ? null +, qttools ? null +# - JIT compiler for loops: +, enableJIT ? false +, llvm ? null }: let @@ -20,33 +66,63 @@ in stdenv.mkDerivation rec { version = "5.2.0"; pname = "octave"; + src = fetchurl { url = "mirror://gnu/octave/${pname}-${version}.tar.gz"; sha256 = "1qcmcpsq1lfka19fxzvxjwjhg113c39a9a0x8plkhvwdqyrn5sig"; }; - buildInputs = [ gfortran readline ncurses perl flex texinfo qhull - graphicsmagick pcre pkgconfig fltk zlib curl openblas libsndfile fftw - fftwSinglePrec portaudio qrupdate arpack libwebp gl2ps ] - ++ (stdenv.lib.optional (qt != null) qt) - ++ (stdenv.lib.optional (qscintilla != null) qscintilla) - ++ (stdenv.lib.optional (ghostscript != null) ghostscript) - ++ (stdenv.lib.optional (llvm != null) llvm) - ++ (stdenv.lib.optional (hdf5 != null) hdf5) - ++ (stdenv.lib.optional (glpk != null) glpk) - ++ (stdenv.lib.optional (suitesparse != null) suitesparse) - ++ (stdenv.lib.optional (jdk != null) jdk) - ++ (stdenv.lib.optional (gnuplot != null) gnuplot) - ++ (stdenv.lib.optional (python != null) python) - ++ (stdenv.lib.optionals (!stdenv.isDarwin) [ libGL libGLU libX11 ]) - ; - - # makeinfo is required by Octave at runtime to display help - prePatch = '' - substituteInPlace libinterp/corefcn/help.cc \ - --replace 'Vmakeinfo_program = "makeinfo"' \ - 'Vmakeinfo_program = "${texinfo}/bin/makeinfo"' - ''; + buildInputs = [ + readline + ncurses + perl + flex + qhull + graphicsmagick + pcre + fltk + zlib + curl + openblas + libsndfile + fftw + fftwSinglePrec + portaudio + qrupdate + arpack + libwebp + gl2ps + ] + ++ (stdenv.lib.optionals enableQt [ + qtbase + qtsvg + qscintilla + ]) + ++ (stdenv.lib.optional (ghostscript != null) ghostscript) + ++ (stdenv.lib.optional (hdf5 != null) hdf5) + ++ (stdenv.lib.optional (glpk != null) glpk) + ++ (stdenv.lib.optional (suitesparse != null) suitesparse) + ++ (stdenv.lib.optional (enableJava) jdk) + ++ (stdenv.lib.optional (sundials_2 != null) sundials_2) + ++ (stdenv.lib.optional (gnuplot != null) gnuplot) + ++ (stdenv.lib.optional (python != null) python) + ++ (stdenv.lib.optionals (!stdenv.isDarwin) [ libGL libGLU libX11 ]) + ; + nativeBuildInputs = [ + pkgconfig + gfortran + # Listed here as well because it's outputs are split + fftw + fftwSinglePrec + texinfo + ] + ++ (stdenv.lib.optional (sundials_2 != null) sundials_2) + ++ (stdenv.lib.optional enableJIT llvm) + ++ (stdenv.lib.optionals enableQt [ + qtscript + qttools + ]) + ; doCheck = !stdenv.isDarwin; @@ -55,15 +131,16 @@ stdenv.mkDerivation rec { # See https://savannah.gnu.org/bugs/?50339 F77_INTEGER_8_FLAG = if openblas.blas64 then "-fdefault-integer-8" else ""; - configureFlags = - [ "--enable-readline" - "--enable-dl" - "--with-blas=openblas" - "--with-lapack=openblas" - ] - ++ stdenv.lib.optional openblas.blas64 "--enable-64" - ++ stdenv.lib.optionals stdenv.isDarwin ["--with-x=no"] - ; + configureFlags = [ + "--with-blas=openblas" + "--with-lapack=openblas" + ] + ++ stdenv.lib.optionals enableReadline [ "--enable-readline" ] + ++ stdenv.lib.optionals openblas.blas64 [ "--enable-64" ] + ++ stdenv.lib.optionals stdenv.isDarwin [ "--with-x=no" ] + ++ stdenv.lib.optionals enableQt [ "--with-qt=5" ] + ++ stdenv.lib.optionals enableJIT [ "--enable-jit" ] + ; # Keep a copy of the octave tests detailed results in the output # derivation, because someone may care @@ -81,6 +158,8 @@ stdenv.mkDerivation rec { license = stdenv.lib.licenses.gpl3Plus; maintainers = with stdenv.lib.maintainers; [raskin]; 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 ++ darwin) else overridePlatforms; diff --git a/pkgs/development/libraries/sundials/2.x.nix b/pkgs/development/libraries/sundials/2.x.nix new file mode 100644 index 000000000000..12840b769403 --- /dev/null +++ b/pkgs/development/libraries/sundials/2.x.nix @@ -0,0 +1,61 @@ +{ stdenv +, cmake +, fetchurl +, python +# GNU Octave needs KLU for ODE solvers +, suitesparse +, liblapack +, gfortran +, lapackSupport ? true }: + +let liblapackShared = liblapack.override { + shared = true; +}; + +in stdenv.mkDerivation rec { + pname = "sundials"; + version = "2.7.0"; + + buildInputs = [ python ] ++ stdenv.lib.optionals (lapackSupport) [ + gfortran + suitesparse + ]; + nativeBuildInputs = [ cmake ]; + + src = fetchurl { + url = "https://computation.llnl.gov/projects/${pname}/download/${pname}-${version}.tar.gz"; + sha256 = "01513g0j7nr3rh7hqjld6mw0mcx5j9z9y87bwjc16w2x2z3wm7yk"; + }; + + patches = [ + (fetchurl { + # https://github.com/LLNL/sundials/pull/19 + url = "https://github.com/LLNL/sundials/commit/1350421eab6c5ab479de5eccf6af2dcad1eddf30.patch"; + sha256 = "0g67lixp9m85fqpb9rzz1hl1z8ibdg0ldwq5z6flj5zl8a7cw52l"; + }) + ]; + + cmakeFlags = [ + "-DEXAMPLES_INSTALL_PATH=${placeholder "out"}/share/examples" + ] ++ stdenv.lib.optionals (lapackSupport) [ + "-DSUNDIALS_INDEX_TYPE=int32_t" + # GNU Octave needs KLU for ODE solvers + "-DKLU_ENABLE=ON" + "-DKLU_INCLUDE_DIR=${suitesparse}/include" + "-DKLU_LIBRARY_DIR=${suitesparse}/lib" + "-DLAPACK_ENABLE=ON" + "-DLAPACK_LIBRARIES=${liblapackShared}/lib/liblapack${stdenv.hostPlatform.extensions.sharedLibrary};${liblapackShared}/lib/libblas${stdenv.hostPlatform.extensions.sharedLibrary}" + ]; + + # flaky tests, and patch in https://github.com/LLNL/sundials/pull/21 doesn't apply cleanly for sundials_3 + doCheck = false; + checkPhase = "make test"; + + meta = with stdenv.lib; { + description = "Suite of nonlinear differential/algebraic equation solvers"; + homepage = https://computation.llnl.gov/projects/sundials; + platforms = platforms.all; + maintainers = with maintainers; [ flokli idontgetoutmuch ]; + license = licenses.bsd3; + }; +} diff --git a/pkgs/development/ocaml-modules/dum/default.nix b/pkgs/development/ocaml-modules/dum/default.nix index 37c00f6b31e9..5e5199c26905 100644 --- a/pkgs/development/ocaml-modules/dum/default.nix +++ b/pkgs/development/ocaml-modules/dum/default.nix @@ -1,25 +1,24 @@ -{ lib, fetchFromGitHub, buildOcaml, ocaml +{ stdenv, fetchFromGitHub, ocaml, findlib , easy-format }: -buildOcaml rec { - name = "dum"; +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-dum-${version}"; version = "1.0.1"; - minimumOCamlVersion = "4.06"; - src = fetchFromGitHub { owner = "mjambon"; - repo = name; + repo = "dum"; rev = "v${version}"; sha256 = "0yrxl97szjc0s2ghngs346x3y0xszx2chidgzxk93frjjpsr1mlr"; }; - buildInputs = [ easy-format ]; + buildInputs = [ ocaml findlib ]; + propagatedBuildInputs = [ easy-format ]; - doCheck = true; + createFindlibDestdir = true; - meta = with lib; { + meta = with stdenv.lib; { homepage = https://github.com/mjambon/dum; description = "Inspect the runtime representation of arbitrary OCaml values"; license = licenses.lgpl21Plus; diff --git a/pkgs/development/python-modules/hg-evolve/default.nix b/pkgs/development/python-modules/hg-evolve/default.nix new file mode 100644 index 000000000000..b2857eb24579 --- /dev/null +++ b/pkgs/development/python-modules/hg-evolve/default.nix @@ -0,0 +1,24 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +}: + +buildPythonPackage rec { + pname = "hg-evolve"; + version = "9.2.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "08bjrgxv8zrrz5xxydzkjl4a8cw3g62nmzfnvdzxxcrf1c96qw76"; + }; + + doCheck = false; + + meta = with stdenv.lib; { + description = "Enables the “changeset evolution” feature of Mercurial core"; + homepage = "https://www.mercurial-scm.org/doc/evolution/"; + maintainers = with maintainers; [ xavierzwirtz ]; + license = stdenv.lib.licenses.gpl2Plus; + }; +} diff --git a/pkgs/development/tools/gnulib/default.nix b/pkgs/development/tools/gnulib/default.nix index 316c38706d3d..368a1520ca00 100644 --- a/pkgs/development/tools/gnulib/default.nix +++ b/pkgs/development/tools/gnulib/default.nix @@ -2,12 +2,12 @@ stdenv.mkDerivation { pname = "gnulib"; - version = "20190811"; + version = "20200223"; src = fetchgit { url = https://git.savannah.gnu.org/r/gnulib.git; - rev = "6430babe47ece6953cf18ef07c1d8642c8588e89"; - sha256 = "14kgykbjly03dlb25sllcfcrpk7zkypa449gr3zbqv4rhpmnzizg"; + rev = "292fd5d6ff5ecce81ec3c648f353732a9ece83c0"; + sha256 = "0hkg3nql8nsll0vrqk4ifda0v4kpi67xz42r8daqsql6c4rciqnw"; }; dontFixup = true; diff --git a/pkgs/tools/X11/xprintidle-ng/default.nix b/pkgs/tools/X11/xprintidle-ng/default.nix index 117a612381f6..4ae457dab4a8 100644 --- a/pkgs/tools/X11/xprintidle-ng/default.nix +++ b/pkgs/tools/X11/xprintidle-ng/default.nix @@ -19,20 +19,18 @@ stdenv.mkDerivation rec { --replace "AC_PREREQ([2.62])" "AC_PREREQ([2.63])" ''; - nativeBuildInputs = [ + nativeBuildInputs = [ autoconf automake gettext git gnulib help2man libtool perl pkgconfig texinfo ]; configurePhase = '' - cp -r "${gnulib}" gnulib - chmod a+rX,u+w -R gnulib - ./bootstrap --gnulib-srcdir=gnulib + ./bootstrap --gnulib-srcdir=${gnulib} ./configure --prefix="$out" ''; buildInputs = [ - libX11 libXScrnSaver libXext + libX11 libXScrnSaver libXext ]; meta = { diff --git a/pkgs/tools/compression/lbzip2/default.nix b/pkgs/tools/compression/lbzip2/default.nix index 7e9cc055abf5..99d41c06ec64 100644 --- a/pkgs/tools/compression/lbzip2/default.nix +++ b/pkgs/tools/compression/lbzip2/default.nix @@ -1,13 +1,23 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchFromGitHub, gnulib, perl, autoconf, automake }: stdenv.mkDerivation rec { - name = "lbzip2-2.5"; + version = "2.5"; + name = "lbzip2-${version}"; - src = fetchurl { - url = "http://archive.lbzip2.org/${name}.tar.gz"; - sha256 = "1sahaqc5bw4i0iyri05syfza4ncf5cml89an033fspn97klmxis6"; + src = fetchFromGitHub { + owner = "kjn"; + repo = "lbzip2"; + sha256 = "1h321wva6fp6khz6x0i6rqb76xh327nw6v5jhgjpcckwdarj5jv8"; + rev = "v${version}"; }; + buildInputs = [ gnulib perl ]; + nativeBuildInputs = [ autoconf automake ]; + + preConfigure = '' + ./build-aux/autogen.sh + ''; + meta = with stdenv.lib; { homepage = "https://github.com/kjn/lbzip2"; # Formerly http://lbzip2.org/ description = "Parallel bzip2 compression utility"; diff --git a/pkgs/tools/filesystems/glusterfs/default.nix b/pkgs/tools/filesystems/glusterfs/default.nix index db5c469e63b6..dad032073c04 100644 --- a/pkgs/tools/filesystems/glusterfs/default.nix +++ b/pkgs/tools/filesystems/glusterfs/default.nix @@ -15,10 +15,10 @@ let # The command # find /nix/store/...-glusterfs-.../ -name '*.py' -executable # can help with finding new Python scripts. - version = "7.2"; + version = "7.3"; name="${baseName}-${version}"; url="https://github.com/gluster/glusterfs/archive/v${version}.tar.gz"; - sha256 = "0v333q217rvgh6bnmq4bcafkjz2gq0p4xqmxd3carkyl1zyyp8q5"; + sha256 = "08g8394vk88cb71z4k5sknld1nsd20f4mk2yyjvdp1hwm97z12pq"; }; buildInputs = [ diff --git a/pkgs/tools/misc/grub/2.0x.nix b/pkgs/tools/misc/grub/2.0x.nix index 3f5485718dc5..3eec453824d7 100644 --- a/pkgs/tools/misc/grub/2.0x.nix +++ b/pkgs/tools/misc/grub/2.0x.nix @@ -83,12 +83,9 @@ stdenv.mkDerivation rec { unset CPP # setting CPP intereferes with dependency calculation - cp -r ${gnulib} $PWD/gnulib - chmod u+w -R $PWD/gnulib - patchShebangs . - ./bootstrap --no-git --gnulib-srcdir=$PWD/gnulib + ./bootstrap --no-git --gnulib-srcdir=${gnulib} substituteInPlace ./configure --replace '/usr/share/fonts/unifont' '${unifont}/share/fonts' ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 04e454961c30..d681fd0fe039 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9247,23 +9247,19 @@ in }; octave = callPackage ../development/interpreters/octave { - qt = null; - qscintilla = null; - ghostscript = null; - graphicsmagick = null; - llvm = null; - hdf5 = null; - glpk = null; - suitesparse = null; - jdk = null; + python = python3; openblas = if stdenv.isDarwin then openblasCompat else openblas; }; - - octaveFull = (lowPrio (octave.override { - qt = qt4; - inherit qscintilla; - overridePlatforms = ["x86_64-linux" "x86_64-darwin"]; + octave-jit = callPackage ../development/interpreters/octave { + python = python3; openblas = if stdenv.isDarwin then openblasCompat else openblas; + enableJIT = true; + }; + octaveFull = (lowPrio (libsForQt512.callPackage ../development/interpreters/octave { + python = python3; + openblas = if stdenv.isDarwin then openblasCompat else openblas; + enableQt = true; + overridePlatforms = ["x86_64-linux" "x86_64-darwin"]; })); ocropus = callPackage ../applications/misc/ocropus { }; @@ -14432,7 +14428,13 @@ in withQt5 = false; }; - sundials = callPackage ../development/libraries/sundials { }; + sundials = callPackage ../development/libraries/sundials { + python = python3; + }; + + sundials_2 = callPackage ../development/libraries/sundials/2.x.nix { + python = python3; + }; sutils = callPackage ../tools/misc/sutils { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 409fff8994c8..99d321ada39a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3441,6 +3441,8 @@ in { hg-git = callPackage ../development/python-modules/hg-git { }; + hg-evolve = callPackage ../development/python-modules/hg-evolve { }; + dtopt = callPackage ../development/python-modules/dtopt { }; easywatch = callPackage ../development/python-modules/easywatch { }; |