2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv
|
2015-04-27 06:15:25 +02:00
|
|
|
|
|
|
|
# Version specific stuff
|
|
|
|
, release, version, src
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
|
2015-04-27 05:55:07 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "tcl";
|
|
|
|
inherit version;
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2015-04-27 06:15:25 +02:00
|
|
|
inherit src;
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2016-09-01 15:09:28 +02:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
setOutputFlags = false;
|
|
|
|
|
2015-04-30 20:42:43 +02:00
|
|
|
preConfigure = ''
|
|
|
|
cd unix
|
|
|
|
'';
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2018-12-11 23:45:07 +01:00
|
|
|
configureFlags = [
|
2018-12-11 23:48:45 +01:00
|
|
|
"--enable-threads"
|
2018-12-11 23:45:07 +01: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 23:48:45 +01:00
|
|
|
] ++ stdenv.lib.optional stdenv.is64bit "--enable-64bit";
|
2018-12-11 23:45:07 +01:00
|
|
|
|
2016-09-01 15:09:28 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-04-23 15:31:10 +02:00
|
|
|
postInstall = ''
|
|
|
|
make install-private-headers
|
2015-04-27 05:55:07 +02:00
|
|
|
ln -s $out/bin/tclsh${release} $out/bin/tclsh
|
2019-04-22 23:47:48 +02:00
|
|
|
ln -s $out/lib/libtcl${release}.so $out/lib/libtcl.so
|
2009-04-23 15:31:10 +02:00
|
|
|
'';
|
2016-09-01 15:09:28 +02:00
|
|
|
|
2015-04-27 05:55:07 +02:00
|
|
|
meta = with stdenv.lib; {
|
2019-04-22 23:47:48 +02:00
|
|
|
description = "The Tcl scripting language";
|
|
|
|
homepage = https://www.tcl.tk/;
|
2015-04-27 05:55:07 +02:00
|
|
|
license = licenses.tcltk;
|
|
|
|
platforms = platforms.all;
|
2019-01-26 11:01:09 +01:00
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2005-11-22 13:05:18 +01:00
|
|
|
};
|
2016-09-01 15:09:28 +02:00
|
|
|
|
2015-04-27 05:55:07 +02:00
|
|
|
passthru = rec {
|
|
|
|
inherit release version;
|
|
|
|
libPrefix = "tcl${release}";
|
|
|
|
libdir = "lib/${libPrefix}";
|
2012-04-14 23:40:55 +02:00
|
|
|
};
|
2005-11-22 13:05:18 +01:00
|
|
|
}
|