2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchzip, autoreconfHook, which, ocaml, findlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
if !lib.versionAtLeast ocaml.version "4.02"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "bitv is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-bitv-${version}";
|
|
|
|
version = "1.3";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/backtracking/bitv/archive/${version}.tar.gz";
|
|
|
|
sha256 = "0vkh1w9fpi5m1sgiqg6r38j3fqglhdajmbyiyr91113lrpljm75i";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ autoreconfHook which ocaml findlib ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A bit vector library for OCaml";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/backtracking/bitv";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|