linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / pcre2 / default.nix
blob6bf6cff98bbe528e162371aac2e38c26c6c061af
1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
4   pname = "pcre2";
5   version = "10.36";
6   src = fetchurl {
7     url = "https://ftp.pcre.org/pub/pcre/${pname}-${version}.tar.bz2";
8     sha256 = "0p3699msps07p40g9426lvxa3b41rg7k2fn7qxl2jm0kh4kkkvx9";
9   };
11   configureFlags = [
12     "--enable-pcre2-16"
13     "--enable-pcre2-32"
14   ] ++ lib.optional (!stdenv.hostPlatform.isRiscV) "--enable-jit";
16   outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];
18   doCheck = false; # fails 1 out of 3 tests, looks like a bug
20   postFixup = ''
21     moveToOutput bin/pcre2-config "$dev"
22   '';
24   meta = with lib; {
25     description = "Perl Compatible Regular Expressions";
26     homepage = "http://www.pcre.org/";
27     license = licenses.bsd3;
28     maintainers = with maintainers; [ ttuegel ];
29     platforms = platforms.all;
30   };