diff --git a/pkgs/tools/graphics/gnuplot/default.nix b/pkgs/tools/graphics/gnuplot/default.nix index fa9635f0cb8aab2..a292dedc6f99921 100644 --- a/pkgs/tools/graphics/gnuplot/default.nix +++ b/pkgs/tools/graphics/gnuplot/default.nix @@ -13,6 +13,7 @@ , gnused ? null , coreutils ? null , withQt ? false, mkDerivation, qttools, qtbase, qtsvg +, enableInfo ? true, emacs }: assert libX11 != null -> (fontconfig != null && gnused != null && coreutils != null); @@ -28,7 +29,12 @@ in sha256 = "sha256-l12MHMLEHHztxOMjr/A12Xf+ual/ApbdKopm0Zelsnw="; }; - 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 = [ cairo gd libcerf pango readline zlib ] @@ -74,6 +80,10 @@ in enableParallelBuilding = true; + installTargets = + [ "install" ] + ++ lib.optional enableInfo "install-info"; + meta = with lib; { homepage = "http://www.gnuplot.info/"; description = "A portable command-line driven graphing utility for many platforms";