7 , openblas ? null, blas, lapack
11 assert withBlas -> openblas != null && blas.implementation == "openblas" && lapack.implementation == "openblas";
13 stdenv.mkDerivation rec {
17 url = "http://www.flintlib.org/flint-${version}.tar.gz";
18 sha256 = "07j8r96kdzp19cy3a5yvpjxf90mkd6103yr2n42qmpv7mgcjyvhq";
25 ] ++ lib.optionals withBlas [
28 propagatedBuildInputs = [
29 mpfr # flint.h includes mpfr.h
36 ] ++ lib.optionals withBlas [
37 "--with-blas=${openblas}"
40 # issues with ntl -- https://github.com/wbhart/flint2/issues/487
41 NIX_CXXSTDLIB_COMPILE = "-std=c++11";
46 description = "Fast Library for Number Theory";
47 license = lib.licenses.gpl2Plus;
48 maintainers = [lib.maintainers.raskin];
49 platforms = lib.platforms.unix;
50 homepage = "http://www.flintlib.org/";
51 downloadPage = "http://www.flintlib.org/downloads.html";