bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
29 lines
768 B
Nix
29 lines
768 B
Nix
{ stdenv, lib, fetchFromGitHub, autoreconfHook, which, ocaml, findlib }:
|
|
|
|
if lib.versionOlder 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 ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
description = "Bit vector library for OCaml";
|
|
license = lib.licenses.lgpl21;
|
|
homepage = "https://github.com/backtracking/bitv";
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|