summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/bitv/default.nix
blob: 07649f3655b8635d5ece2b8a83f4a0fcd6161b8c (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
{ stdenv, lib, fetchFromGitHub, autoreconfHook, which, ocaml, findlib }:

if !lib.versionAtLeast ocaml.version "4.02"
then throw "bitv is not available for OCaml ${ocaml.version}"
else

stdenv.mkDerivation rec {
  pname = "ocaml${ocaml.version}-bitv";
  version = "1.3";

  src = fetchFromGitHub {
    owner = "backtracking";
    repo = "bitv";
    rev = version;
    sha256 = "sha256-sZwq6c10hBBS9tGvKlWD9GE3JBrZPByfDrXE6xIPcG4=";
  };

  nativeBuildInputs = [ autoreconfHook which ocaml findlib ];

  strictDeps = true;

  createFindlibDestdir = true;

  meta = {
    description = "A bit vector library for OCaml";
    license = lib.licenses.lgpl21;
    homepage = "https://github.com/backtracking/bitv";
    maintainers = [ lib.maintainers.vbgl ];
    inherit (ocaml.meta) platforms;
  };
}