2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pcre, ocaml, findlib, ocamlbuild }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-pcre-${version}";
|
|
|
|
version = "7.2.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mmottl/pcre-ocaml/releases/download/v${version}/pcre-ocaml-${version}.tar.gz";
|
|
|
|
sha256 = "0rj6dw79px4sj2kq0iss2nzq3rnsn9wivvc0f44wa1mppr6njfb3";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
|
|
|
propagatedBuildInputs = [pcre];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
dontConfigure = true; # Skip configure phase
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://bitbucket.org/mmottl/pcre-ocaml";
|
|
|
|
description = "An efficient C-library for pattern matching with Perl-style regular expressions in OCaml";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
maintainers = with maintainers; [ maggesi vbmithr ];
|
|
|
|
};
|
|
|
|
}
|