12 if lib.versionAtLeast ocaml.version "4.07" then
15 src = fetchFromGitHub {
19 hash = "sha256-fKuO/e5YbA2B7XcghWl9pXxwvKw9YlhnmZDZcuKe3cs=";
22 else if lib.versionOlder ocaml.version "4.06" then
24 version = "20120619-1";
26 url = "http://dypgen.free.fr/dypgen-20120619-1.tar.bz2";
27 sha256 = "ecb53d6e469e9ec4d57ee6323ff498d45b78883ae13618492488e7c5151fdd97";
31 throw "dypgen is not available for OCaml ${ocaml.version}";
34 stdenv.mkDerivation rec {
35 pname = "ocaml${ocaml.version}-dypgen";
36 inherit (params) src version;
45 createFindlibDestdir = true;
53 "MANDIR=$(out)/usr/share/man/man1"
54 "DYPGENLIBDIR=$(out)/lib/ocaml/${ocaml.version}/site-lib"
58 homepage = "http://dypgen.free.fr";
59 description = "Dypgen GLR self extensible parser generator";
60 license = lib.licenses.cecill-b;
61 inherit (ocaml.meta) platforms;