1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-23 18:37:02 +00:00
nixpkgs/pkgs/development/ocaml-modules/dypgen/default.nix

33 lines
752 B
Nix
Raw Normal View History

{stdenv, fetchurl, ocaml, findlib}:
let
pname = "dypgen";
in
2016-10-05 08:32:30 +01:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
2016-10-05 08:32:30 +01:00
version = "20120619-1";
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";
meta = {
homepage = http://dypgen.free.fr;
description = "Dypgen GLR self extensible parser generator";
license = stdenv.lib.licenses.cecill-b;
platforms = ocaml.meta.platforms or [];
};
}