Unverified Commit 6638106e authored by ajs124's avatar ajs124 Committed by GitHub
Browse files

Merge pull request #201108 from wegank/gsl-1-drop

gsl_1: drop
parents 86481573 acd2a030
Loading
Loading
Loading
Loading
+0 −51
Original line number Diff line number Diff line
{ fetchurl, fetchpatch, lib, stdenv }:

stdenv.mkDerivation rec {
  pname = "gsl";
  version = "1.16";

  src = fetchurl {
    url = "mirror://gnu/gsl/gsl-${version}.tar.gz";
    sha256 = "0lrgipi0z6559jqh82yx8n4xgnxkhzj46v96dl77hahdp58jzg3k";
  };

  # do not let -march=skylake to enable FMA (https://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html)
  NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isx86_64 "-mno-fma";

  patches = [
    (fetchpatch {
      name = "bug-39055.patch";
      url = "https://git.savannah.gnu.org/cgit/gsl.git/patch/?id=9cc12d";
      sha256 = "1bmrmihi28cly9g9pq54kkix2jy59y7cd7h5fw4v1c7h5rc2qvs8";
    })

    (fetchpatch {
      name = "fix-parallel-test.patch";
      url = "https://git.savannah.gnu.org/cgit/gsl.git/patch/?id=12654373c3b60541230921aae81f93b484ec5eaf";
      sha256 = "1flzpbsfj7gjywv6v9qvm8wpdrkbpj7shryinfdpb40y7si9njdw";
    })
  ];

  enableParallelBuilding = true;
  doCheck = true;

  meta = {
    description = "The GNU Scientific Library, a large numerical library";
    homepage = "https://www.gnu.org/software/gsl/";
    license = lib.licenses.gpl3Plus;

    longDescription = ''
      The GNU Scientific Library (GSL) is a numerical library for C
      and C++ programmers.  It is free software under the GNU General
      Public License.

      The library provides a wide range of mathematical routines such
      as random number generators, special functions and least-squares
      fitting.  There are over 1000 functions in total with an
      extensive test suite.
    '';
    platforms = lib.platforms.unix;
    # Failing "eigen" tests on aarch64.
    badPlatforms = [ "aarch64-linux" ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -582,6 +582,7 @@ mapAliases ({
  gr-rds = gnuradio3_7.pkgs.rds; # Added 2019-05-27, changed 2020-10-16
  grv = throw "grv has been dropped due to the lack of maintanence from upstream since 2019"; # Added 2022-06-01
  gsettings_desktop_schemas = throw "'gsettings_desktop_schemas' has been renamed to/replaced by 'gsettings-desktop-schemas'"; # Converted to throw 2022-02-22
  gsl_1 = throw "'gsl_1' has been renamed to/replaced by 'gsl'"; # Added 2022-11-19
  gtk_doc = throw "'gtk_doc' has been renamed to/replaced by 'gtk-doc'"; # Converted to throw 2022-02-22
  gtklick = throw "gtklick has been removed from nixpkgs as the project is stuck on python2"; # Added 2022-01-01
  gtmess = throw "gtmess has been removed, because it was a MSN client."; # add 2021-12-15
+0 −2
Original line number Diff line number Diff line
@@ -19321,8 +19321,6 @@ with pkgs;
  gsl = callPackage ../development/libraries/gsl { };
  gsl_1 = callPackage ../development/libraries/gsl/gsl-1_16.nix { };
  gsl-lite = callPackage ../development/libraries/gsl-lite { };
  gsm = callPackage ../development/libraries/gsm {};