lol
1{ fetchurl, fetchpatch, stdenv }:
2
3stdenv.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 platforms = stdenv.lib.platforms.unix;
39 };
40}