mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
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>
54 lines
974 B
Nix
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 ];
|
|
};
|
|
}
|