2015-04-27 05:15:25 +01:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
|
|
|
|
# Version specific stuff
|
|
|
|
, release, version, src
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
|
2015-04-27 04:55:07 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tcl-${version}";
|
2009-04-23 14:31:10 +01:00
|
|
|
|
2015-04-27 05:15:25 +01:00
|
|
|
inherit src;
|
2009-04-23 14:31:10 +01:00
|
|
|
|
2016-09-01 14:09:28 +01:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
setOutputFlags = false;
|
|
|
|
|
2015-04-30 19:42:43 +01:00
|
|
|
preConfigure = ''
|
2016-09-01 14:09:28 +01:00
|
|
|
# Note: using $out instead of $man to prevent a runtime dependency on $man.
|
|
|
|
configureFlagsArray+=(--mandir=$out/share/man --enable-man-symlinks)
|
2015-04-30 19:42:43 +01:00
|
|
|
cd unix
|
|
|
|
'';
|
2009-04-23 14:31:10 +01:00
|
|
|
|
2016-09-01 14:09:28 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-04-23 14:31:10 +01:00
|
|
|
postInstall = ''
|
|
|
|
make install-private-headers
|
2015-04-27 04:55:07 +01:00
|
|
|
ln -s $out/bin/tclsh${release} $out/bin/tclsh
|
2009-04-23 14:31:10 +01:00
|
|
|
'';
|
2016-09-01 14:09:28 +01:00
|
|
|
|
2015-04-27 04:55:07 +01: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 04:55:07 +01:00
|
|
|
license = licenses.tcltk;
|
|
|
|
platforms = platforms.all;
|
2016-07-29 00:19:08 +01:00
|
|
|
maintainers = with maintainers; [ wkennington vrthra ];
|
2005-11-22 12:05:18 +00:00
|
|
|
};
|
2016-09-01 14:09:28 +01:00
|
|
|
|
2015-04-27 04:55:07 +01:00
|
|
|
passthru = rec {
|
|
|
|
inherit release version;
|
|
|
|
libPrefix = "tcl${release}";
|
|
|
|
libdir = "lib/${libPrefix}";
|
2012-04-14 22:40:55 +01:00
|
|
|
};
|
2005-11-22 12:05:18 +00:00
|
|
|
}
|