From 6030ff068ad72c6fe0671a113fa19eb7d48816c1 Mon Sep 17 00:00:00 2001 From: t4ccer Date: Thu, 31 Oct 2024 20:00:50 -0600 Subject: [PATCH] gnuplot: fix build with `withTeXLive = true` --- pkgs/tools/graphics/gnuplot/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/graphics/gnuplot/default.nix b/pkgs/tools/graphics/gnuplot/default.nix index c43059c03af5..0646718f4c75 100644 --- a/pkgs/tools/graphics/gnuplot/default.nix +++ b/pkgs/tools/graphics/gnuplot/default.nix @@ -49,7 +49,8 @@ in (if withX then "--with-x" else "--without-x") (if withQt then "--with-qt=qt5" else "--without-qt") (if aquaterm then "--with-aquaterm" else "--without-aquaterm") - ] ++ lib.optional withCaca "--with-caca"; + ] ++ 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";