1 { lib, stdenv, fetchFromGitLab, ocaml, findlib, bzip2, autoreconfHook }:
3 if lib.versionOlder ocaml.version "4.02"
4 || lib.versionAtLeast ocaml.version "5.0"
5 then throw "bz2 is not available for OCaml ${ocaml.version}"
8 stdenv.mkDerivation rec {
9 pname = "ocaml${ocaml.version}-bz2";
12 src = fetchFromGitLab {
16 sha256 = "sha256-jBFEkLN2fbC3LxTu7C0iuhvNg64duuckBHWZoBxrV/U=";
19 autoreconfFlags = [ "-I" "." ];
27 propagatedBuildInputs = [
33 preInstall = "mkdir -p $OCAMLFIND_DESTDIR/stublibs";
36 description = "OCaml bindings for the libbz2 (AKA, bzip2) (de)compression library";
37 downloadPage = "https://gitlab.com/irill/camlbz2";
38 license = licenses.lgpl21;
39 maintainers = with maintainers; [ ];