Merge pull request #278189 from smasher164/flint3

flint3: init at 3.0.1

authored by 7c6f434c and committed by GitHub d84f364c 6109bb23

+73
+71
pkgs/development/libraries/flint/3.nix
···
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , gmp 5 + , mpfr 6 + , ntl 7 + , autoconf 8 + , automake 9 + , gettext 10 + , libtool 11 + , openblas ? null, blas, lapack 12 + , withBlas ? true 13 + , withNtl ? true 14 + }: 15 + 16 + assert withBlas -> openblas != null && blas.implementation == "openblas" && lapack.implementation == "openblas"; 17 + 18 + stdenv.mkDerivation rec { 19 + pname = "flint3"; 20 + version = "3.0.1"; 21 + 22 + src = fetchurl { 23 + url = "https://www.flintlib.org/flint-${version}.tar.gz"; 24 + sha256 = "sha256-ezEaAFA6hjiB64F32+uEMi8pOZ89fXLzsaTJuh1XlLQ="; 25 + }; 26 + 27 + propagatedBuildInputs = [ 28 + autoconf 29 + automake 30 + gettext 31 + libtool 32 + ]; 33 + 34 + buildInputs = [ 35 + gmp 36 + mpfr 37 + ] ++ lib.optionals withBlas [ 38 + openblas 39 + ] ++ lib.optionals withNtl [ 40 + ntl 41 + ]; 42 + 43 + # We're not using autoreconfHook because flint's bootstrap 44 + # script calls autoreconf, among other things. 45 + preConfigurePhase = '' 46 + echo "Executing bootstrap.sh" 47 + ./bootstrap.sh 48 + ''; 49 + 50 + configureFlags = [ 51 + "--with-gmp=${gmp}" 52 + "--with-mpfr=${mpfr}" 53 + ] ++ lib.optionals withBlas [ 54 + "--with-blas=${openblas}" 55 + ] ++ lib.optionals withNtl [ 56 + "--with-ntl=${ntl}" 57 + ]; 58 + 59 + enableParallelBuilding = true; 60 + 61 + doCheck = true; 62 + 63 + meta = with lib; { 64 + description = "Fast Library for Number Theory"; 65 + license = licenses.gpl2Plus; 66 + maintainers = with maintainers; [ smasher164 ] ++ teams.sage.members; 67 + platforms = platforms.unix; 68 + homepage = "https://www.flintlib.org/"; 69 + downloadPage = "https://www.flintlib.org/downloads.html"; 70 + }; 71 + }
+2
pkgs/top-level/all-packages.nix
··· 21263 21264 flint = callPackage ../development/libraries/flint { }; 21265 21266 flite = callPackage ../development/libraries/flite { }; 21267 21268 fltk13 = callPackage ../development/libraries/fltk {
··· 21263 21264 flint = callPackage ../development/libraries/flint { }; 21265 21266 + flint3 = callPackage ../development/libraries/flint/3.nix { }; 21267 + 21268 flite = callPackage ../development/libraries/flite { }; 21269 21270 fltk13 = callPackage ../development/libraries/fltk {