diff --git a/pkgs/development/ocaml-modules/sedlex/default.nix b/pkgs/development/ocaml-modules/sedlex/default.nix new file mode 100644 index 000000000000..5dbc74ef5436 --- /dev/null +++ b/pkgs/development/ocaml-modules/sedlex/default.nix @@ -0,0 +1,29 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index d4ca17f6dbd8..b86ac44bd652 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -429,6 +429,8 @@ let safepass = callPackage ../development/ocaml-modules/safepass { }; + sedlex = callPackage ../development/ocaml-modules/sedlex { }; + sqlite3EZ = callPackage ../development/ocaml-modules/sqlite3EZ { }; stringext = callPackage ../development/ocaml-modules/stringext { };