about summary refs log tree commit diff
path: root/pkgs/development/libraries/tk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-01 15:15:07 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-01 18:57:43 +0200
commit02683acf714c506611fc3e4ec3c3a518fd08ae65 (patch)
treeddb880384d940ac332b04f137a2691b25180365f /pkgs/development/libraries/tk
parentb0327ac2409f9d7e9a5aa0379f2b351b56058dfd (diff)
downloadnixlib-02683acf714c506611fc3e4ec3c3a518fd08ae65.tar
nixlib-02683acf714c506611fc3e4ec3c3a518fd08ae65.tar.gz
nixlib-02683acf714c506611fc3e4ec3c3a518fd08ae65.tar.bz2
nixlib-02683acf714c506611fc3e4ec3c3a518fd08ae65.tar.lz
nixlib-02683acf714c506611fc3e4ec3c3a518fd08ae65.tar.xz
nixlib-02683acf714c506611fc3e4ec3c3a518fd08ae65.tar.zst
nixlib-02683acf714c506611fc3e4ec3c3a518fd08ae65.zip
tk: Separate man output
This reduces the size of the main output by half a megabyte.
Diffstat (limited to 'pkgs/development/libraries/tk')
-rw-r--r--pkgs/development/libraries/tk/generic.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/libraries/tk/generic.nix b/pkgs/development/libraries/tk/generic.nix
index c5a01ec7e7c8..0ed4aee7a960 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"
   ];