14 if lib.versionAtLeast ocaml.version "4.02" then
17 sha256 = "08yf2x9a52l2y4savjqfjd2xy4pjd1rpla2ylrr9qrz1drpfw4ic";
22 sha256 = "0cmscxcmcxhlshh4jd0lzw5ffzns12x3bj7h27smbc8waxkwffhl";
26 stdenv.mkDerivation rec {
27 name = "ocaml${ocaml.version}-${pname}-${version}";
28 inherit (param) version;
30 src = fetchFromGitHub {
34 inherit (param) sha256;
37 createFindlibDestdir = true;
45 propagatedBuildInputs = [ camlp4 ];
55 inherit (src.meta) homepage;
56 description = "Lexer generator for Unicode and OCaml";
57 license = lib.licenses.mit;
58 inherit (ocaml.meta) platforms;
59 maintainers = [ lib.maintainers.roconnor ];