2019-12-09 07:11:20 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2019-12-02 10:41:59 +00:00
|
|
|
, fetchpatch
|
2019-12-09 07:11:20 +00:00
|
|
|
, gettext
|
|
|
|
, autoreconfHook
|
|
|
|
, gmp
|
|
|
|
, mpfr
|
2016-10-10 15:55:47 +01:00
|
|
|
}:
|
2019-12-09 07:11:20 +00:00
|
|
|
|
2016-10-10 15:55:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fplll";
|
2019-12-02 10:41:59 +00:00
|
|
|
version = "5.3.0";
|
2019-12-09 07:11:20 +00:00
|
|
|
|
2016-10-10 15:55:47 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-12-09 07:11:20 +00:00
|
|
|
owner = "fplll";
|
|
|
|
repo = "fplll";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2019-12-02 10:41:59 +00:00
|
|
|
sha256 = "0wxa4xs7as7y47h7i6prmk5r0srabdvrlkvza3j50pixir5swgvh";
|
2016-10-10 15:55:47 +01:00
|
|
|
};
|
2019-12-09 07:11:20 +00:00
|
|
|
|
2019-12-02 10:41:59 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/fplll/fpylll/issues/161
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-out-of-bounds-access.patch";
|
|
|
|
url = "https://github.com/fplll/fplll/pull/398/commits/f68e257228bf073ef380f996326d02197ce7b0e4.patch";
|
|
|
|
sha256 = "1rapkcf389lf579va6kbnvhzyv36n4l4d9n0vg2zxprvql8wvm7m";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-12-09 07:11:20 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gmp
|
|
|
|
mpfr
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-10-10 15:55:47 +01:00
|
|
|
description = ''Lattice algorithms using floating-point arithmetic'';
|
2019-12-09 07:20:03 +00:00
|
|
|
changelog = [
|
|
|
|
# Some release notes are added to the github tags, though they are not
|
|
|
|
# always complete.
|
|
|
|
"https://github.com/fplll/fplll/releases/tag/${version}"
|
|
|
|
# Releases are announced on this mailing list. Unfortunately it is not
|
|
|
|
# possible to generate a direct link to the most recent announcement, but
|
|
|
|
# this search should find it.
|
|
|
|
"https://groups.google.com/forum/#!searchin/fplll-devel/FPLLL$20${version}"
|
|
|
|
];
|
2019-12-09 07:11:20 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2019-12-09 07:20:20 +00:00
|
|
|
maintainers = with maintainers; [raskin timokau];
|
2019-12-09 07:11:20 +00:00
|
|
|
platforms = platforms.unix;
|
2016-10-10 15:55:47 +01:00
|
|
|
};
|
|
|
|
}
|