python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / ctre / default.nix
blobb91c00930ae015ebea23c2f8720128f88141f51e
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 }:
7 stdenv.mkDerivation rec {
8   pname = "ctre";
9   version = "3.7.1";
11   src = fetchFromGitHub {
12     owner = "hanickadot";
13     repo = "compile-time-regular-expressions";
14     rev = "v${version}";
15     hash = "sha256-KqYBSY45x8FDQ0YgjrKoZdOiuhf33gv5w160/dSsSsg=";
16   };
18   nativeBuildInputs = [ cmake ];
20   postPatch = ''
21     substituteInPlace packaging/pkgconfig.pc.in \
22       --replace "\''${prefix}/" ""
23   '';
25   dontBuild = true;
27   meta = with lib; {
28     description = "Fast compile-time regular expressions library";
29     longDescription = ''
30       Fast compile-time regular expressions with support for
31       matching/searching/capturing during compile-time or runtime.
32     '';
33     license = licenses.asl20;
34     homepage = "https://compile-time.re";
35     maintainers = with maintainers; [ azahi ];
36     platforms = platforms.all;
37   };