1 { stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild, topkg, astring }:
3 stdenv.mkDerivation rec {
4 pname = "ocaml${ocaml.version}-ocb-stubblr";
8 url = "https://github.com/pqwy/ocb-stubblr/releases/download/v${version}/ocb-stubblr-${version}.tbz";
10 sha256 = "0hpds1lkq4j8wgslv7hnirgfrjmqi36h5rarpw9mwf24gfp5ays2";
13 patches = [ ./pkg-config.patch ];
15 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
16 buildInputs = [ topkg ocamlbuild ];
18 propagatedBuildInputs = [ astring ];
22 inherit (topkg) buildPhase installPhase;
25 description = "OCamlbuild plugin for C stubs";
26 homepage = "https://github.com/pqwy/ocb-stubblr";
27 license = lib.licenses.isc;
28 inherit (ocaml.meta) platforms;
29 maintainers = [ lib.maintainers.vbgl ];