2013-06-04 19:49:10 +01:00
|
|
|
{stdenv, fetchurl, ocaml, findlib}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "dypgen";
|
|
|
|
in
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2016-10-05 08:32:30 +01: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 = {
|
|
|
|
homepage = http://dypgen.free.fr;
|
|
|
|
description = "Dypgen GLR self extensible parser generator";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.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
|
|
|
};
|
|
|
|
}
|