blob: 1e3cb02b913a089e8e39d8eff6f2ab8cdf997ca9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ stdenv, fetchzip, ocaml, findlib, gen, ppx_tools_versioned }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "sedlex is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-sedlex-${version}";
version = "1.99.4";
src = fetchzip {
url = "http://github.com/alainfrisch/sedlex/archive/v${version}.tar.gz";
sha256 = "1b7nqxyfcz8i7m4b8zil2rn6ygh2czy26f9v64xnxn8r0hy9sh1m";
};
buildInputs = [ ocaml findlib ppx_tools_versioned ];
propagatedBuildInputs = [ gen ];
buildFlags = [ "all" "opt" ];
createFindlibDestdir = true;
dontStrip = true;
meta = {
homepage = https://github.com/alainfrisch/sedlex;
description = "An OCaml lexer generator for Unicode";
license = stdenv.lib.licenses.mit;
inherit (ocaml.meta) platforms;
maintainers = [ stdenv.lib.maintainers.vbgl ];
};
}
|