From 2d92ea3951b8e354a08c16369cc6ecdb67237d18 Mon Sep 17 00:00:00 2001 From: whispers Date: Fri, 24 Jul 2026 14:05:05 -0400 Subject: [PATCH] abseil-cpp: allow overriding cxxStandard individual abseil-cpp_* versions allow overriding the C++ standard version that abseil is built with. this is very useful when the default compiler C++ standard is different than the project's C++ standard. accordingly, we extend this capability to the top-level abseil-cpp wrapper alias as there's no reason to pin to an abseil LTS just for this. --- pkgs/by-name/ab/abseil-cpp/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ab/abseil-cpp/package.nix b/pkgs/by-name/ab/abseil-cpp/package.nix index 37806c0e7ce1..61e67450c68b 100644 --- a/pkgs/by-name/ab/abseil-cpp/package.nix +++ b/pkgs/by-name/ab/abseil-cpp/package.nix @@ -5,4 +5,8 @@ # library.” Therefore, we keep packages `abseil-cpp_YYYYMM` for each # required LTS branch, leaving `abseil-cpp` as an alias. -{ abseil-cpp_202601 }: abseil-cpp_202601 +{ + abseil-cpp_202601, + cxxStandard ? null, +}: +abseil-cpp_202601.override { inherit cxxStandard; }