1 { stdenv, lib, fetchFromGitHub, autoreconfHook, which, ocaml, findlib }:
3 if lib.versionOlder ocaml.version "4.02"
4 then throw "bitv is not available for OCaml ${ocaml.version}"
7 stdenv.mkDerivation rec {
8 pname = "ocaml${ocaml.version}-bitv";
11 src = fetchFromGitHub {
12 owner = "backtracking";
15 sha256 = "sha256-sZwq6c10hBBS9tGvKlWD9GE3JBrZPByfDrXE6xIPcG4=";
18 nativeBuildInputs = [ autoreconfHook which ocaml findlib ];
20 createFindlibDestdir = true;
23 description = "A bit vector library for OCaml";
24 license = lib.licenses.lgpl21;
25 homepage = "https://github.com/backtracking/bitv";
26 maintainers = [ lib.maintainers.vbgl ];
27 inherit (ocaml.meta) platforms;