From c5413729e8bf83cfa64957196449810eb53b106f Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 29 Nov 2023 18:21:56 +0100 Subject: [PATCH] gnuplot: Add info output It's optional, but enabled by default. --- pkgs/tools/graphics/gnuplot/default.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/graphics/gnuplot/default.nix b/pkgs/tools/graphics/gnuplot/default.nix index 9d54bd8648200..dd775b95139b1 100644 --- a/pkgs/tools/graphics/gnuplot/default.nix +++ b/pkgs/tools/graphics/gnuplot/default.nix @@ -33,6 +33,8 @@ qttools, qtbase, qtsvg, + enableInfo ? true, + emacs, }: assert libX11 != null -> (fontconfig != null && gnused != null && coreutils != null); @@ -48,11 +50,16 @@ in sha256 = "sha256-6FpmDBoqGAj/JPfmmYH/y6xmpFydz3EbZWELJupxN5o="; }; - nativeBuildInputs = [ - makeWrapper - pkg-config - texinfo - ] ++ lib.optional withQt qttools; + outputs = [ "out" ] ++ lib.optional enableInfo "info"; + + nativeBuildInputs = + [ + makeWrapper + pkg-config + texinfo + ] + ++ lib.optional withQt qttools + ++ lib.optional enableInfo emacs; buildInputs = [ @@ -122,6 +129,8 @@ in enableParallelBuilding = true; + installTargets = [ "install" ] ++ lib.optional enableInfo "install-info"; + meta = with lib; { homepage = "http://www.gnuplot.info/"; description = "Portable command-line driven graphing utility for many platforms";