3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/sedlex/default.nix
Vincent Laporte 16242a7c63 ocamlPackages.sedlex: init at 1.99.3
sedlex is a Unicode-friendly lexer generator for OCaml.

Homepage: https://github.com/alainfrisch/sedlex
2016-11-04 19:06:45 +01:00

30 lines
779 B
Nix

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