2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv
|
2015-04-27 04:15:25 +00:00
|
|
|
|
|
|
|
# Version specific stuff
|
|
|
|
, release, version, src
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
|
2015-04-27 03:55:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tcl-${version}";
|
2009-04-23 13:31:10 +00:00
|
|
|
|
2015-04-27 04:15:25 +00:00
|
|
|
inherit src;
|
2009-04-23 13:31:10 +00:00
|
|
|
|
2016-09-01 13:09:28 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
setOutputFlags = false;
|
|
|
|
|
2015-04-30 18:42:43 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cd unix
|
|
|
|
'';
|
2009-04-23 13:31:10 +00:00
|
|
|
|
2018-12-11 22:45:07 +00:00
|
|
|
configureFlags = [
|
2018-12-11 22:48:45 +00:00
|
|
|
"--enable-threads"
|
2018-12-11 22:45:07 +00:00
|
|
|
# Note: using $out instead of $man to prevent a runtime dependency on $man.
|
|
|
|
"--mandir=${placeholder "out"}/share/man"
|
|
|
|
"--enable-man-symlinks"
|
|
|
|
# Don't install tzdata because NixOS already has a more up-to-date copy.
|
|
|
|
"--with-tzdata=no"
|
|
|
|
"tcl_cv_strtod_unbroken=ok"
|
2018-12-11 22:48:45 +00:00
|
|
|
] ++ stdenv.lib.optional stdenv.is64bit "--enable-64bit";
|
2018-12-11 22:45:07 +00:00
|
|
|
|
2016-09-01 13:09:28 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-04-23 13:31:10 +00:00
|
|
|
postInstall = ''
|
|
|
|
make install-private-headers
|
2015-04-27 03:55:07 +00:00
|
|
|
ln -s $out/bin/tclsh${release} $out/bin/tclsh
|
2009-04-23 13:31:10 +00:00
|
|
|
'';
|
2016-09-01 13:09:28 +00:00
|
|
|
|
2015-04-27 03:55:07 +00:00
|
|
|
meta = with stdenv.lib; {
|
2008-02-27 15:48:53 +00:00
|
|
|
description = "The Tcl scription language";
|
|
|
|
homepage = http://www.tcl.tk/;
|
2015-04-27 03:55:07 +00:00
|
|
|
license = licenses.tcltk;
|
|
|
|
platforms = platforms.all;
|
2016-07-28 23:19:08 +00:00
|
|
|
maintainers = with maintainers; [ wkennington vrthra ];
|
2005-11-22 12:05:18 +00:00
|
|
|
};
|
2016-09-01 13:09:28 +00:00
|
|
|
|
2015-04-27 03:55:07 +00:00
|
|
|
passthru = rec {
|
|
|
|
inherit release version;
|
|
|
|
libPrefix = "tcl${release}";
|
|
|
|
libdir = "lib/${libPrefix}";
|
2012-04-14 21:40:55 +00:00
|
|
|
};
|
2005-11-22 12:05:18 +00:00
|
|
|
}
|