about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/integers/default.nix
blob: ed5ccbedb64db40e2f12d8d142cdd01f6803be0d (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
{ lib, fetchFromGitHub, buildDunePackage, ocaml }:

buildDunePackage rec {
  pname = "integers";
  version = "0.5.1";

  useDune2 = lib.versionAtLeast ocaml.version "4.08";

  src = fetchFromGitHub {
    owner = "ocamllabs";
    repo = "ocaml-integers";
    rev = version;
    sha256 = "0by5pc851fk7ccxqy1w2qc5jwn9z8whyqhs5gxlm5986vr9msnyi";
  };

  meta = {
    description = "Various signed and unsigned integer types for OCaml";
    license = lib.licenses.mit;
    homepage = "https://github.com/ocamllabs/ocaml-integers";
    changelog = "https://github.com/ocamllabs/ocaml-integers/raw/${version}/CHANGES.md";
    maintainers = [ lib.maintainers.vbgl ];
  };
}