about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/fl/flatter/package.nix
blob: 8f7cd7e657915ec969724d82ca358209ea8f9f3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ lib
, stdenv
, fetchFromGitHub
, unstableGitUpdater
, cmake
, blas
, gmp
, mpfr
, fplll
, eigen
, llvmPackages
}:

stdenv.mkDerivation {
  pname = "flatter";
  version = "0-unstable-2023-08-10";

  src = fetchFromGitHub {
    owner = "keeganryan";
    repo = "flatter";
    rev = "500e31df6b7308e8101b2a4a9cc816bf8f483417";
    hash = "sha256-STYx7cXvkcF+KqrG32pN16HWfEScc0zxkmOmfv43zIw=";
  };

  strictDeps = true;

  nativeBuildInputs = [
    cmake
  ];

  buildInputs = [
    blas
    gmp
    mpfr
    fplll
    eigen
  ] ++ lib.optionals stdenv.isDarwin [
    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 ];
  };
}