2021-01-11 04:49:15 -08:00
|
|
|
{stdenv, lib, fetchurl, ocaml, findlib}:
|
2013-06-04 11:49:10 -07:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "dypgen";
|
|
|
|
in
|
|
|
|
|
2021-01-11 04:49:15 -08:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2018-08-21 06:43:01 -07:00
|
|
|
then throw "${pname} is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2016-10-05 00:32:30 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2013-06-04 11:49:10 -07:00
|
|
|
name = "${pname}-${version}";
|
2016-10-05 00:32:30 -07:00
|
|
|
version = "20120619-1";
|
2013-06-04 11:49:10 -07: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 06:03:25 -07:00
|
|
|
makeFlags = [ "BINDIR=$(out)/bin" "MANDIR=$(out)/usr/share/man/man1" "DYPGENLIBDIR=$(out)/lib/ocaml/${ocaml.version}/site-lib" ];
|
2013-06-04 11:49:10 -07:00
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://dypgen.free.fr";
|
2013-06-04 11:49:10 -07:00
|
|
|
description = "Dypgen GLR self extensible parser generator";
|
2021-01-11 04:49:15 -08:00
|
|
|
license = lib.licenses.cecill-b;
|
2015-12-24 09:49:07 -08:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2013-06-04 11:49:10 -07:00
|
|
|
};
|
|
|
|
}
|