summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/flint/default.nix
blob: c7b56fb2ecf3245d408e68b2ed0ce43062a46575 (plain)
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
{
  lib,
  buildDunePackage,
  fetchzip,

  flint-c,
  zarith,
  ctypes,
  dune-configurator,
}:

buildDunePackage (finalAttrs: {
  pname = "flint";
  version = "0.4.2";

  __structuredAttrs = true;

  src = fetchzip {
    url = "https://github.com/bobot/ocaml-flint/releases/download/0.4.2/flint-0.4.2.tbz";
    hash = "sha256-dZiznSROdHrQdqgxu8wXtBiQE0gCnHQjbQ+QDzCdygo=";
  };

  dontConfigure = true; # ./configure directory

  propagatedBuildInputs = [
    flint-c
    zarith
    ctypes
    dune-configurator
  ];

  meta = {
    description = "OCaml stubs for Flint2, Arb, Antic, Calcium";
    homepage = "https://github.com/bobot/ocaml-flint";
    license = lib.licenses.lgpl21Only;
    maintainers = with lib.maintainers; [ luc65r ];
  };
})