2015-04-27 06:15:25 +02:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
|
|
|
|
# Version specific stuff
|
|
|
|
, release, version, src
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
|
2015-04-27 05:55:07 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tcl-${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
|
|
|
|
2015-04-30 20:42:43 +02:00
|
|
|
preConfigure = ''
|
|
|
|
cd unix
|
|
|
|
'';
|
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
|
2009-04-23 15:31:10 +02:00
|
|
|
'';
|
|
|
|
|
2015-04-27 05:55:07 +02:00
|
|
|
meta = with stdenv.lib; {
|
2008-02-27 16:48:53 +01:00
|
|
|
description = "The Tcl scription language";
|
|
|
|
homepage = http://www.tcl.tk/;
|
2015-04-27 05:55:07 +02:00
|
|
|
license = licenses.tcltk;
|
|
|
|
platforms = platforms.all;
|
2015-04-30 20:42:43 +02:00
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2005-11-22 13:05:18 +01:00
|
|
|
};
|
2012-04-14 23:40:55 +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
|
|
|
}
|