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

32 lines
823 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
2015-10-10 01:08:25 +01:00
2016-05-24 15:15:43 +01:00
stdenv.mkDerivation rec {
pname = "pcre2";
2020-05-23 00:58:55 +01:00
version = "10.35";
2015-10-10 01:08:25 +01:00
src = fetchurl {
url = "https://ftp.pcre.org/pub/pcre/${pname}-${version}.tar.bz2";
2020-05-23 00:58:55 +01:00
sha256 = "04s6kmk9qdd4rjz477h547j4bx7hfz0yalpvrm381rqc5ghaijww";
2015-10-10 01:08:25 +01:00
};
2015-10-10 19:56:24 +01:00
configureFlags = [
"--enable-pcre2-16"
"--enable-pcre2-32"
] ++ stdenv.lib.optional (!stdenv.hostPlatform.isRiscV) "--enable-jit";
2015-10-10 19:56:24 +01:00
2016-09-14 15:57:01 +01:00
outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];
2018-08-10 01:30:08 +01:00
doCheck = false; # fails 1 out of 3 tests, looks like a bug
2016-09-14 15:57:01 +01:00
postFixup = ''
moveToOutput bin/pcre2-config "$dev"
'';
meta = with stdenv.lib; {
description = "Perl Compatible Regular Expressions";
homepage = "http://www.pcre.org/";
2016-09-14 15:57:01 +01:00
license = licenses.bsd3;
maintainers = with maintainers; [ ttuegel ];
platforms = platforms.all;
2015-10-10 01:08:25 +01:00
};
}