depot/third_party/nixpkgs/pkgs/development/ocaml-modules/bitv/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
790 B
Nix

{ stdenv, fetchzip, autoreconfHook, which, ocaml, findlib }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
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";
license = stdenv.lib.licenses.lgpl21;
homepage = "https://github.com/backtracking/bitv";
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}