2014-01-14 12:23:44 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2015-04-27 03:55:07 +00:00
|
|
|
let
|
|
|
|
release = "8.6";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tcl-${version}";
|
|
|
|
version = "${release}.4";
|
2009-04-23 13:31:10 +00:00
|
|
|
|
2005-11-22 12:05:18 +00:00
|
|
|
src = fetchurl {
|
2015-04-27 03:55:07 +00:00
|
|
|
url = "mirror://sourceforge/tcl/tcl${version}-src.tar.gz";
|
2015-03-26 22:39:20 +00:00
|
|
|
sha256 = "13cwa4bc85ylf5gfj9vk182lvgy60qni3f7gbxghq78wk16djvly";
|
2008-02-27 15:48:53 +00:00
|
|
|
};
|
2009-04-23 13:31:10 +00:00
|
|
|
|
|
|
|
preConfigure = "cd unix";
|
|
|
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
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;
|
2005-11-22 12:05:18 +00:00
|
|
|
};
|
2012-04-14 21:40:55 +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
|
|
|
}
|