range-v3: use -std=c++17 due to compilation error with gcc_13

This commit is contained in:
Fabián Heredia Montiel 2024-09-11 01:41:15 -06:00
parent b1e9a03960
commit 1bd5351012

View File

@ -21,6 +21,10 @@ stdenv.mkDerivation rec {
doCheck = !stdenv.isAarch64; doCheck = !stdenv.isAarch64;
checkTarget = "test"; checkTarget = "test";
env = lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = "-std=c++17";
};
meta = with lib; { meta = with lib; {
description = "Experimental range library for C++11/14/17"; description = "Experimental range library for C++11/14/17";
homepage = "https://github.com/ericniebler/range-v3"; homepage = "https://github.com/ericniebler/range-v3";