nixpkgs/pkgs/development/ocaml-modules/pcre/default.nix

27 lines
852 B
Nix
Raw Normal View History

2018-05-09 07:41:45 +01:00
{ stdenv, fetchurl, pcre, ocaml, findlib, ocamlbuild }:
2018-05-09 07:41:45 +01:00
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-pcre-${version}";
version = "7.2.3";
src = fetchurl {
2018-05-09 07:41:45 +01:00
url = "https://github.com/mmottl/pcre-ocaml/releases/download/v${version}/pcre-ocaml-${version}.tar.gz";
sha256 = "0rj6dw79px4sj2kq0iss2nzq3rnsn9wivvc0f44wa1mppr6njfb3";
};
2018-05-09 07:41:45 +01:00
buildInputs = [ ocaml findlib ocamlbuild ];
propagatedBuildInputs = [pcre];
createFindlibDestdir = true;
2019-06-19 16:36:06 +01:00
dontConfigure = true; # Skip configure phase
2014-04-21 23:31:27 +01:00
meta = with stdenv.lib; {
homepage = https://bitbucket.org/mmottl/pcre-ocaml;
description = "An efficient C-library for pattern matching with Perl-style regular expressions in OCaml";
2014-04-21 23:31:27 +01:00
license = licenses.lgpl21;
platforms = ocaml.meta.platforms or [];
maintainers = with maintainers; [ maggesi vbmithr ];
};
}