2021-01-11 12:49:15 +00:00
|
|
|
{stdenv, lib, fetchurl, ocaml, findlib}:
|
2013-06-04 19:49:10 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "dypgen";
|
|
|
|
in
|
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2018-08-21 14:43:01 +01:00
|
|
|
then throw "${pname} is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2016-10-05 08:32:30 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2013-06-04 19:49:10 +01:00
|
|
|
name = "${pname}-${version}";
|
2016-10-05 08:32:30 +01:00
|
|
|
version = "20120619-1";
|
2013-06-04 19:49:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dypgen.free.fr/dypgen-20120619-1.tar.bz2";
|
|
|
|
sha256 = "ecb53d6e469e9ec4d57ee6323ff498d45b78883ae13618492488e7c5151fdd97";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ocaml findlib];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "BINDIR=$(out)/bin" "MANDIR=$(out)/usr/share/man/man1" "DYPGENLIBDIR=$(out)/lib/ocaml/${ocaml.version}/site-lib" ];
|
2013-06-04 19:49:10 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://dypgen.free.fr";
|
2013-06-04 19:49:10 +01:00
|
|
|
description = "Dypgen GLR self extensible parser generator";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.cecill-b;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2013-06-04 19:49:10 +01:00
|
|
|
};
|
|
|
|
}
|