Files
nixpkgs/pkgs/by-name/fl/flatter/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
974 B
Nix

{
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 = {
description = "Fast lattice reduction of integer lattice bases";
homepage = "https://github.com/keeganryan/flatter";
license = lib.licenses.lgpl3Only;
mainProgram = "flatter";
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ josephsurin ];
};
}