2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, unstableGitUpdater
|
|
|
|
, cmake
|
|
|
|
, blas
|
|
|
|
, gmp
|
|
|
|
, mpfr
|
|
|
|
, fplll
|
|
|
|
, eigen
|
|
|
|
, llvmPackages
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "flatter";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0-unstable-2024-03-04";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keeganryan";
|
|
|
|
repo = "flatter";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "c2ed0ee94b6d281df7bcbce31ca275197ef9a562";
|
|
|
|
hash = "sha256-1Pjn0lANXaMOqlwwdOx6X/7jtAvfa2ZWa0nDfS3T5XU=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
blas
|
|
|
|
gmp
|
|
|
|
mpfr
|
|
|
|
fplll
|
|
|
|
eigen
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-02-29 20:09:43 +00:00
|
|
|
llvmPackages.openmp
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "(F)ast (lat)tice (r)eduction of integer lattice bases";
|
|
|
|
homepage = "https://github.com/keeganryan/flatter";
|
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
mainProgram = "flatter";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ josephsurin ];
|
|
|
|
};
|
|
|
|
}
|