nixpkgs/pkgs/development/libraries/pcre2/default.nix

31 lines
732 B
Nix
Raw Normal View History

2015-10-09 17:08:25 -07:00
{ stdenv, fetchurl }:
2016-05-24 07:15:43 -07:00
stdenv.mkDerivation rec {
2016-09-14 07:57:01 -07:00
name = "pcre2-${version}";
version = "10.22";
2015-10-09 17:08:25 -07:00
src = fetchurl {
2016-05-24 07:15:43 -07:00
url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${name}.tar.bz2";
2016-09-14 07:57:01 -07:00
sha256 = "05pl338962d7syd1rbkg96916mq7d3amz1n2fjnm0v5cyhcldd5j";
2015-10-09 17:08:25 -07:00
};
2015-10-10 11:56:24 -07:00
configureFlags = [
"--enable-pcre2-16"
"--enable-pcre2-32"
2015-10-10 11:56:24 -07:00
"--enable-jit"
];
2016-09-14 07:57:01 -07:00
outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];
postFixup = ''
moveToOutput bin/pcre2-config "$dev"
'';
meta = with stdenv.lib; {
description = "Perl Compatible Regular Expressions";
2015-10-09 17:08:25 -07:00
homepage = "http://www.pcre.org/";
2016-09-14 07:57:01 -07:00
license = licenses.bsd3;
maintainers = with maintainers; [ ttuegel ];
platforms = platforms.all;
2015-10-09 17:08:25 -07:00
};
}