2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, camlp4 }:
|
2010-12-31 17:48:55 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "ulex";
|
|
|
|
in
|
|
|
|
|
2016-10-05 08:32:30 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2010-12-31 17:48:55 +00:00
|
|
|
name = "${pname}-${version}";
|
2016-10-05 08:32:30 +01:00
|
|
|
version = "1.1";
|
2010-12-31 17:48:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.cduce.org/download/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0fjlkwps14adfgxdrbb4yg65fhyimplvjjs1xqj5np197cig67x0";
|
|
|
|
};
|
|
|
|
|
2011-11-27 23:58:46 +00:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2015-06-11 23:03:00 +01:00
|
|
|
propagatedBuildInputs = [ camlp4 ];
|
2010-12-31 17:48:55 +00:00
|
|
|
|
|
|
|
buildFlags = "all all.opt";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.cduce.org/download.html;
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A lexer generator for Unicode and OCaml";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2010-12-31 17:48:55 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
|
|
|
};
|
|
|
|
}
|