From 02683acf714c506611fc3e4ec3c3a518fd08ae65 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 1 Sep 2016 15:15:07 +0200 Subject: [PATCH] tk: Separate man output This reduces the size of the main output by half a megabyte. --- pkgs/development/libraries/tk/generic.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/tk/generic.nix b/pkgs/development/libraries/tk/generic.nix index c5a01ec7e7c..0ed4aee7a96 100644 --- a/pkgs/development/libraries/tk/generic.nix +++ b/pkgs/development/libraries/tk/generic.nix @@ -5,14 +5,19 @@ stdenv.mkDerivation { inherit src patches; - postInstall = '' - ln -s $out/bin/wish* $out/bin/wish - ''; + outputs = [ "out" "man" ]; + + setOutputFlags = false; preConfigure = '' + configureFlagsArray+=(--mandir=$man/share/man --enable-man-symlinks) cd unix ''; + postInstall = '' + ln -s $out/bin/wish* $out/bin/wish + ''; + configureFlags = [ "--with-tcl=${tcl}/lib" ];