1 { lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild
9 description = "The C preprocessor for OCaml";
12 Cppo is an equivalent of the C preprocessor targeted at the OCaml language and its variants.
14 homepage = "https://github.com/ocaml-community/${pname}";
15 maintainers = [ maintainers.vbgl ];
16 license = licenses.bsd3;
21 if lib.versionAtLeast ocaml.version "4.02" then
23 buildDunePackage rec {
29 src = fetchFromGitHub {
30 owner = "ocaml-community";
33 sha256 = "sha256-NdN2QnVRfRq9hEcSAnO2Wha7icDlf2Zg4JQqoEWmErE=";
43 let version = "1.5.0"; in
47 name = "${pname}-${version}";
49 src = fetchFromGitHub {
53 sha256 = "1xqldjz9risndnabvadw41fdbi5sa2hl4fnqls7j9xfbby1izbg8";
58 nativeBuildInputs = [ ocaml findlib ocamlbuild ];
62 createFindlibDestdir = true;
64 makeFlags = [ "PREFIX=$(out)" ];