nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ fetchurl, stdenv }:
2
3stdenv.mkDerivation rec {
4 name = "gsl-2.5";
5
6 src = fetchurl {
7 url = "mirror://gnu/gsl/${name}.tar.gz";
8 sha256 = "1395y9hlhqadn5g9j8q22224fds5sd92jxi9czfavjj24myasq04";
9 };
10
11 patches = [
12 # ToDo: there might be more impurities than FMA support check
13 ./disable-fma.patch # https://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html
14 ];
15
16 # https://lists.gnu.org/archive/html/bug-gsl/2015-11/msg00012.html
17 doCheck = stdenv.hostPlatform.system != "i686-linux" && stdenv.hostPlatform.system != "aarch64-linux";
18
19 meta = {
20 description = "The GNU Scientific Library, a large numerical library";
21 homepage = https://www.gnu.org/software/gsl/;
22 license = stdenv.lib.licenses.gpl3Plus;
23
24 longDescription = ''
25 The GNU Scientific Library (GSL) is a numerical library for C
26 and C++ programmers. It is free software under the GNU General
27 Public License.
28
29 The library provides a wide range of mathematical routines such
30 as random number generators, special functions and least-squares
31 fitting. There are over 1000 functions in total with an
32 extensive test suite.
33 '';
34 platforms = stdenv.lib.platforms.unix;
35 };
36}