1{
2 stdenv,
3 lib,
4 fetchzip,
5 ocaml,
6 findlib,
7 ocamlbuild,
8 topkg,
9 astring,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "ocaml${ocaml.version}-ocb-stubblr";
14 version = "0.1.0";
15
16 src = fetchzip {
17 url = "https://github.com/pqwy/ocb-stubblr/releases/download/v${version}/ocb-stubblr-${version}.tbz";
18 name = "src.tar.bz";
19 sha256 = "0hpds1lkq4j8wgslv7hnirgfrjmqi36h5rarpw9mwf24gfp5ays2";
20 };
21
22 patches = [ ./pkg-config.patch ];
23
24 nativeBuildInputs = [
25 ocaml
26 findlib
27 ocamlbuild
28 topkg
29 ];
30 buildInputs = [
31 topkg
32 ocamlbuild
33 ];
34
35 propagatedBuildInputs = [ astring ];
36
37 strictDeps = true;
38
39 inherit (topkg) buildPhase installPhase;
40
41 meta = {
42 description = "OCamlbuild plugin for C stubs";
43 homepage = "https://github.com/pqwy/ocb-stubblr";
44 license = lib.licenses.isc;
45 inherit (ocaml.meta) platforms;
46 maintainers = [ lib.maintainers.vbgl ];
47 };
48}