Merge pull request #36460 from timokau/linbox-init

linbox: init at 1.5.2

authored by Matthew Justin Bauer and committed by GitHub bf6641ed d6b1e816

+80
+79
pkgs/development/libraries/linbox/default.nix
··· 1 + { stdenv 2 + , fetchFromGitHub 3 + , fetchpatch 4 + , autoreconfHook 5 + , givaro 6 + , pkgconfig 7 + , openblas 8 + , liblapack 9 + , fflas-ffpack 10 + , gmpxx 11 + , optimize ? false # impure 12 + , withSage ? false # sage support 13 + }: 14 + stdenv.mkDerivation rec { 15 + name = "${pname}-${version}"; 16 + pname = "linbox"; 17 + version = "1.5.2"; 18 + 19 + src = fetchFromGitHub { 20 + owner = "linbox-team"; 21 + repo = "${pname}"; 22 + rev = "v${version}"; 23 + sha256 = "1wfivlwp30mzdy1697w7rzb8caajim50mc8h27k82yipn2qc5n4i"; 24 + }; 25 + 26 + nativeBuildInputs = [ 27 + autoreconfHook 28 + pkgconfig 29 + ]; 30 + 31 + buildInputs = [ 32 + givaro 33 + (liblapack.override {shared = true;}) 34 + openblas 35 + gmpxx 36 + fflas-ffpack 37 + ]; 38 + 39 + configureFlags = [ 40 + "--with-blas-libs=-lopenblas" 41 + "--with-lapack-libs=-llapack" 42 + "--disable-optimization" 43 + ] ++ stdenv.lib.optionals (!optimize) [ 44 + # disable SIMD instructions (which are enabled *when available* by default) 45 + "--disable-sse" 46 + "--disable-sse2" 47 + "--disable-sse3" 48 + "--disable-ssse3" 49 + "--disable-sse41" 50 + "--disable-sse42" 51 + "--disable-avx" 52 + "--disable-avx2" 53 + "--disable-fma" 54 + "--disable-fma4" 55 + ] ++ stdenv.lib.optionals withSage [ 56 + "--enable-sage" 57 + ]; 58 + 59 + patches = stdenv.lib.optionals withSage [ 60 + # https://trac.sagemath.org/ticket/24214#comment:39 61 + # Will be resolved by 62 + # https://github.com/linbox-team/linbox/issues/69 63 + (fetchpatch { 64 + url = "https://raw.githubusercontent.com/sagemath/sage/a843f48b7a4267e44895a3dfa892c89c85b85611/build/pkgs/linbox/patches/linbox_charpoly_fullCRA.patch"; 65 + sha256 = "16nxfzfknra3k2yk3xy0k8cq9rmnmsch3dnkb03kx15h0y0jmibk"; 66 + }) 67 + ]; 68 + 69 + doCheck = true; 70 + 71 + meta = { 72 + inherit version; 73 + description = "C++ library for exact, high-performance linear algebra"; 74 + license = stdenv.lib.licenses.lgpl21Plus; 75 + maintainers = [stdenv.lib.maintainers.timokau]; 76 + platforms = stdenv.lib.platforms.linux; 77 + homepage = http://linalg.org/; 78 + }; 79 + }
+1
pkgs/top-level/all-packages.nix
··· 8788 8788 8789 8789 fflas-ffpack = callPackage ../development/libraries/fflas-ffpack {}; 8790 8790 fflas-ffpack_1 = callPackage ../development/libraries/fflas-ffpack/1.nix {}; 8791 + linbox = callPackage ../development/libraries/linbox {}; 8791 8792 8792 8793 ffmpeg_0_10 = callPackage ../development/libraries/ffmpeg/0.10.nix { 8793 8794 inherit (darwin.apple_sdk.frameworks) Cocoa;