2013-06-04 20:49:10 +02:00
|
|
|
{stdenv, fetchurl, ocaml, findlib}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "dypgen";
|
|
|
|
in
|
|
|
|
|
2016-10-05 09:32:30 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2013-06-04 20:49:10 +02:00
|
|
|
name = "${pname}-${version}";
|
2016-10-05 09:32:30 +02:00
|
|
|
version = "20120619-1";
|
2013-06-04 20:49:10 +02: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 09:32:30 +02:00
|
|
|
makeFlags = "BINDIR=$(out)/bin MANDIR=$(out)/usr/share/man/man1 DYPGENLIBDIR=$(out)/lib/ocaml/${ocaml.version}/site-lib";
|
2013-06-04 20:49:10 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://dypgen.free.fr;
|
|
|
|
description = "Dypgen GLR self extensible parser generator";
|
2014-11-06 01:44:33 +01:00
|
|
|
license = stdenv.lib.licenses.cecill-b;
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2013-06-04 20:49:10 +02:00
|
|
|
};
|
|
|
|
}
|