mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
tcl: Separate man output and use symlinks
This reduces tcl's total size from 25.0 MiB to 8.6 MiB. Admittedly this is also because putting the manpages in the right place causes all man3 pages to be deleted by the multiple outputs setup hook. Not sure if that's desirable behaviour...
This commit is contained in:
parent
33b87da2cf
commit
b0327ac240
@ -10,15 +10,23 @@ stdenv.mkDerivation rec {
|
||||
|
||||
inherit src;
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
setOutputFlags = false;
|
||||
|
||||
preConfigure = ''
|
||||
# Note: using $out instead of $man to prevent a runtime dependency on $man.
|
||||
configureFlagsArray+=(--mandir=$out/share/man --enable-man-symlinks)
|
||||
cd unix
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
make install-private-headers
|
||||
ln -s $out/bin/tclsh${release} $out/bin/tclsh
|
||||
'';
|
||||
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "The Tcl scription language";
|
||||
homepage = http://www.tcl.tk/;
|
||||
@ -26,7 +34,7 @@ stdenv.mkDerivation rec {
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ wkennington vrthra ];
|
||||
};
|
||||
|
||||
|
||||
passthru = rec {
|
||||
inherit release version;
|
||||
libPrefix = "tcl${release}";
|
||||
|
Loading…
Reference in New Issue
Block a user