From f65bd7b775d459bfa55f9535f41c1b3324d70b8c Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Mon, 3 Jun 2024 18:53:58 +0530 Subject: [PATCH] ananicy-cpp: enable regex support Fetch the patch from https://gitlab.com/ananicy-cpp/ananicy-cpp/-/merge_requests/26 --- pkgs/by-name/an/ananicy-cpp/package.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/by-name/an/ananicy-cpp/package.nix b/pkgs/by-name/an/ananicy-cpp/package.nix index 9a771a470339..f7140615523c 100644 --- a/pkgs/by-name/an/ananicy-cpp/package.nix +++ b/pkgs/by-name/an/ananicy-cpp/package.nix @@ -1,6 +1,7 @@ { lib , clangStdenv , fetchFromGitLab +, fetchpatch , cmake , pkg-config , spdlog @@ -9,6 +10,7 @@ , libbpf , elfutils , bpftools +, pcre2 , zlib }: @@ -24,6 +26,15 @@ clangStdenv.mkDerivation rec { sha256 = "sha256-oPinSc00+Z6SxjfTh7DttcXSjsLv1X0NI+O37C8M8GY="; }; + patches = [ + # FIXME: remove this when updating to next stable release + (fetchpatch { + name = "allow-regex-pattern-matching.patch"; + url = "https://gitlab.com/ananicy-cpp/ananicy-cpp/-/commit/6ea2dccceec39b6c4913f617dad81d859aa20f24.patch"; + hash = "sha256-C+7x/VpVwewXEPwibi7GxGfjuhDkhcjTyGbZHlYL2Bs="; + }) + ]; + strictDeps = true; nativeBuildInputs = [ @@ -33,6 +44,7 @@ clangStdenv.mkDerivation rec { ]; buildInputs = [ + pcre2 spdlog nlohmann_json systemd @@ -51,6 +63,7 @@ clangStdenv.mkDerivation rec { "-DUSE_BPF_PROC_IMPL=ON" "-DBPF_BUILD_LIBBPF=OFF" "-DENABLE_SYSTEMD=ON" + "-DENABLE_REGEX_SUPPORT=ON" "-DVERSION=${version}" ];