028f6b3b62
I've tested that ulex builds (and works) on OSX, and see no reason it would not do so on other platforms, so I'm lifting the linux restriction in platforms.
32 lines
773 B
Nix
32 lines
773 B
Nix
{ stdenv, fetchurl, ocaml, findlib, camlp4 }:
|
|
|
|
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";
|
|
};
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
propagatedBuildInputs = [ camlp4 ];
|
|
|
|
buildFlags = "all all.opt";
|
|
|
|
meta = {
|
|
homepage = http://www.cduce.org/download.html;
|
|
description = "A lexer generator for Unicode and OCaml";
|
|
license = stdenv.lib.licenses.mit;
|
|
platforms = ocaml.meta.platforms;
|
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
|
};
|
|
}
|