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