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