From d5adf1cc3e53a68f6110513b948611520c1b63ce Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Sun, 15 Feb 2026 18:59:57 +0100 Subject: [PATCH] gnuplot: move CXXFLAGS into env for structuredAttrs --- pkgs/tools/graphics/gnuplot/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/graphics/gnuplot/default.nix b/pkgs/tools/graphics/gnuplot/default.nix index 254a29aea333..0bfe40708a63 100644 --- a/pkgs/tools/graphics/gnuplot/default.nix +++ b/pkgs/tools/graphics/gnuplot/default.nix @@ -92,7 +92,9 @@ stdenv.mkDerivation rec { ++ lib.optional withCaca "--with-caca" ++ lib.optional withTeXLive "--with-texdir=${placeholder "out"}/share/texmf/tex/latex/gnuplot"; - CXXFLAGS = lib.optionalString (stdenv.hostPlatform.isDarwin && withQt) "-std=c++11"; + env = lib.optionalAttrs (stdenv.hostPlatform.isDarwin && withQt) { + CXXFLAGS = "-std=c++11"; + }; # we'll wrap things ourselves dontWrapGApps = true;