commit
d17ae11d22
@ -1,4 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, gmp
|
, gmp
|
||||||
, mpir
|
, mpir
|
||||||
@ -15,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
version = "2.8.0";
|
version = "2.8.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.flintlib.org/flint-${version}.tar.gz";
|
url = "https://www.flintlib.org/flint-${version}.tar.gz";
|
||||||
sha256 = "sha256-WEI1zcOdd52ZIOrvFv4ITzwm/+7qADo//2SiCg8zRJ4=";
|
sha256 = "sha256-WEI1zcOdd52ZIOrvFv4ITzwm/+7qADo//2SiCg8zRJ4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -27,9 +28,11 @@ stdenv.mkDerivation rec {
|
|||||||
] ++ lib.optionals withBlas [
|
] ++ lib.optionals withBlas [
|
||||||
openblas
|
openblas
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
mpfr # flint.h includes mpfr.h
|
mpfr # flint.h includes mpfr.h
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-gmp=${gmp}"
|
"--with-gmp=${gmp}"
|
||||||
"--with-mpir=${mpir}"
|
"--with-mpir=${mpir}"
|
||||||
@ -40,13 +43,14 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
meta = {
|
|
||||||
|
meta = with lib; {
|
||||||
description = "Fast Library for Number Theory";
|
description = "Fast Library for Number Theory";
|
||||||
license = lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = lib.teams.sage.members;
|
maintainers = teams.sage.members;
|
||||||
platforms = lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
homepage = "http://www.flintlib.org/";
|
homepage = "https://www.flintlib.org/";
|
||||||
downloadPage = "http://www.flintlib.org/downloads.html";
|
downloadPage = "https://www.flintlib.org/downloads.html";
|
||||||
updateWalker = true;
|
updateWalker = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user