git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #11113 from lancelotsix/update_gsl

gsl: 1.16 -> 2.1

commit251479f89209744b7d84c9eabc072af1b54d14d0 authorvbgl <vbgl@users.noreply.github.com> dateFri 11 Dec 2015, 02:05 (11 years ago) parent8ec4b45d39f9e8
3 files changed+46−9
pkgs/development/libraries/gsl/default.nix+2−7 pkgs/development/libraries/gsl/gsl-1_16.nix+39 pkgs/top-level/all-packages.nix+5−2
pkgs/development/libraries/gsl/default.nix+2−7
@@ -1,21 +1,16 @@
11{ fetchurl, fetchpatch, stdenv }:
22
33stdenv.mkDerivation rec {
4− name = "gsl-1.16";
4+ name = "gsl-2.1";
55
66 src = fetchurl {
77 url = "mirror://gnu/gsl/${name}.tar.gz";
8− sha256 = "0lrgipi0z6559jqh82yx8n4xgnxkhzj46v96dl77hahdp58jzg3k";
8+ sha256 = "0rhcia9jhr3p1f1wybwyllwqfs9bggz99i3mi5lpyqcpff1hdbar";
99 };
1010
1111 patches = [
1212 # ToDo: there might be more impurities than FMA support check
1313 ./disable-fma.patch # http://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html
14− (fetchpatch {
15− name = "bug-39055.patch";
16− url = "http://git.savannah.gnu.org/cgit/gsl.git/patch/?id=9cc12d";
17− sha256 = "1bmrmihi28cly9g9pq54kkix2jy59y7cd7h5fw4v1c7h5rc2qvs8";
18− })
1914 ];
2015
2116 doCheck = true;
pkgs/development/libraries/gsl/gsl-1_16.nixnew file+39
@@ -0,0 +1,39 @@
1+{ fetchurl, fetchpatch, stdenv }:
2+
3+stdenv.mkDerivation rec {
4+ name = "gsl-1.16";
5+
6+ src = fetchurl {
7+ url = "mirror://gnu/gsl/${name}.tar.gz";
8+ sha256 = "0lrgipi0z6559jqh82yx8n4xgnxkhzj46v96dl77hahdp58jzg3k";
9+ };
10+
11+ patches = [
12+ # ToDo: there might be more impurities than FMA support check
13+ ./disable-fma.patch # http://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html
14+ (fetchpatch {
15+ name = "bug-39055.patch";
16+ url = "http://git.savannah.gnu.org/cgit/gsl.git/patch/?id=9cc12d";
17+ sha256 = "1bmrmihi28cly9g9pq54kkix2jy59y7cd7h5fw4v1c7h5rc2qvs8";
18+ })
19+ ];
20+
21+ doCheck = true;
22+
23+ meta = {
24+ description = "The GNU Scientific Library, a large numerical library";
25+ homepage = http://www.gnu.org/software/gsl/;
26+ license = stdenv.lib.licenses.gpl3Plus;
27+
28+ longDescription = ''
29+ The GNU Scientific Library (GSL) is a numerical library for C
30+ and C++ programmers. It is free software under the GNU General
31+ Public License.
32+
33+ The library provides a wide range of mathematical routines such
34+ as random number generators, special functions and least-squares
35+ fitting. There are over 1000 functions in total with an
36+ extensive test suite.
37+ '';
38+ };
39+}
pkgs/top-level/all-packages.nix+5−2
@@ -568,6 +568,7 @@ let
568568
569569 asymptote = callPackage ../tools/graphics/asymptote {
570570 texLive = texlive.combine { inherit (texlive) scheme-small epsf cm-super; };
571+ gsl = gsl_1;
571572 };
572573
573574 atomicparsley = callPackage ../tools/video/atomicparsley { };
@@ -2015,7 +2016,7 @@ let
20152016
20162017 kpcli = callPackage ../tools/security/kpcli { };
20172018
2018− kst = callPackage ../tools/graphics/kst { };
2019+ kst = callPackage ../tools/graphics/kst { gsl = gsl_1; };
20192020
20202021 leocad = callPackage ../applications/graphics/leocad { };
20212022
@@ -6619,6 +6620,8 @@ let
66196620
66206621 gsl = callPackage ../development/libraries/gsl { };
66216622
6623+ gsl_1 = callPackage ../development/libraries/gsl/gsl-1_16.nix { };
6624+
66226625 gsm = callPackage ../development/libraries/gsm {};
66236626
66246627 gsoap = callPackage ../development/libraries/gsoap { };
@@ -12711,7 +12714,7 @@ let
1271112714
1271212715 opusTools = callPackage ../applications/audio/opus-tools { };
1271312716
12714− orpie = callPackage ../applications/misc/orpie { };
12717+ orpie = callPackage ../applications/misc/orpie { gsl = gsl_1; };
1271512718
1271612719 osmo = callPackage ../applications/office/osmo { };
1271712720