at v206 773 B view raw
1{ stdenv, fetchurl, ocaml, findlib, camlp4 }: 2 3let 4 ocaml_version = (builtins.parseDrvName ocaml.name).version; 5 version = "1.1"; 6 pname = "ulex"; 7 8in 9 10stdenv.mkDerivation { 11 name = "${pname}-${version}"; 12 13 src = fetchurl { 14 url = "http://www.cduce.org/download/${pname}-${version}.tar.gz"; 15 sha256 = "0fjlkwps14adfgxdrbb4yg65fhyimplvjjs1xqj5np197cig67x0"; 16 }; 17 18 createFindlibDestdir = true; 19 20 buildInputs = [ ocaml findlib ]; 21 propagatedBuildInputs = [ camlp4 ]; 22 23 buildFlags = "all all.opt"; 24 25 meta = { 26 homepage = http://www.cduce.org/download.html; 27 description = "A lexer generator for Unicode and OCaml"; 28 license = stdenv.lib.licenses.mit; 29 platforms = ocaml.meta.platforms; 30 maintainers = [ stdenv.lib.maintainers.roconnor ]; 31 }; 32}