diff options
author | John Titor <50095635+JohnRTitor@users.noreply.github.com> | 2024-06-03 18:53:58 +0530 |
---|---|---|
committer | John Titor <50095635+JohnRTitor@users.noreply.github.com> | 2024-06-03 18:56:54 +0530 |
commit | f65bd7b775d459bfa55f9535f41c1b3324d70b8c (patch) | |
tree | e0d411f65dc73255c4aa484134782b21fa566c68 /pkgs/by-name/an | |
parent | 9f5f2746ade58a454b513118644c519854e36f5d (diff) |
ananicy-cpp: enable regex support
Fetch the patch from https://gitlab.com/ananicy-cpp/ananicy-cpp/-/merge_requests/26
Diffstat (limited to 'pkgs/by-name/an')
-rw-r--r-- | pkgs/by-name/an/ananicy-cpp/package.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/by-name/an/ananicy-cpp/package.nix b/pkgs/by-name/an/ananicy-cpp/package.nix index 9a771a470339f..f7140615523c6 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}" ]; |