Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
972 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
unstableGitUpdater,
cmake,
blas,
gmp,
mpfr,
fplll,
eigen,
llvmPackages,
}:
stdenv.mkDerivation {
pname = "flatter";
version = "0-unstable-2025-08-25";
src = fetchFromGitHub {
owner = "keeganryan";
repo = "flatter";
rev = "d2b8026f29b4a69e987b15d4b240f8a5053275d3";
hash = "sha256-NAefYPJ+syTmpDiOzkgKB1IZmgQ2DNmvLrtoBee/IX4=";
};
strictDeps = true;
nativeBuildInputs = [
cmake
];
buildInputs = [
blas
gmp
mpfr
fplll
eigen
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.openmp
];
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "Fast lattice reduction of integer lattice bases";
homepage = "https://github.com/keeganryan/flatter";
license = licenses.lgpl3Only;
mainProgram = "flatter";
platforms = platforms.all;
maintainers = with maintainers; [ josephsurin ];
};
}