depot/third_party/nixpkgs/pkgs/development/ocaml-modules/bitv/default.nix
Default email 3cbfd2b52c Project import generated by Copybara.
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
2021-12-18 20:06:50 -05:00

29 lines
767 B
Nix

{ 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=";
};
buildInputs = [ autoreconfHook which ocaml findlib ];
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;
};
}