mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
02bae39132
This cuts about 3 MiB from the installed size. On Linux, the configure script is supposed to detect that installing tzdata is unnecessary, but it looks in locations like /usr/share/zoneinfo.
48 lines
1023 B
Nix
48 lines
1023 B
Nix
{ stdenv, fetchurl
|
|
|
|
# Version specific stuff
|
|
, release, version, src
|
|
, ...
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "tcl-${version}";
|
|
|
|
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)
|
|
|
|
# Don't install tzdata because NixOS already has a more up-to-date copy.
|
|
configureFlagsArray+=(--with-tzdata=no)
|
|
|
|
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/;
|
|
license = licenses.tcltk;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ wkennington vrthra ];
|
|
};
|
|
|
|
passthru = rec {
|
|
inherit release version;
|
|
libPrefix = "tcl${release}";
|
|
libdir = "lib/${libPrefix}";
|
|
};
|
|
}
|