summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/sedlex/default.nix
blob: 2d1746bde0f14438f4e271c4e26376dece23a141 (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
{ stdenv, fetchzip, ocaml, findlib, gen, ppx_tools }:

assert stdenv.lib.versionAtLeast ocaml.version "4.02";

stdenv.mkDerivation rec {
  name = "ocaml${ocaml.version}-${version}";
  version = "1.99.3";

  src = fetchzip {
    url = "http://github.com/alainfrisch/sedlex/archive/v${version}.tar.gz";
    sha256 = "1wghjy3qyj43ll1ikchlqy7fv2hxcn3ap9xgsscm2ch09d8dcv7y";
  };

  buildInputs = [ ocaml findlib ppx_tools ];

  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 ];
  };
}