2010-10-14 11:54:13 +00:00
|
|
|
{stdenv, fetchurl, tcl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "incrtcl-${version}";
|
2016-05-15 11:16:37 +00:00
|
|
|
version = "4.0.4";
|
2010-10-14 11:54:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-05-15 11:16:37 +00:00
|
|
|
url = mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itcl4.0.4.tar.gz;
|
|
|
|
sha256 = "1ppc9b13cvmc6rp77k7dl2zb26xk0z30vxygmr4h1xr2r8w091k3";
|
2010-10-14 11:54:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ tcl ];
|
|
|
|
configureFlags = [ "--with-tcl=${tcl}/lib" ];
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include"
|
|
|
|
'';
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlags="--exec_prefix=$prefix $configureFlags"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
libPrefix = "itcl3.4";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://incrtcl.sourceforge.net/;
|
|
|
|
description = "Object Oriented Enhancements for Tcl/Tk";
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-10-14 11:54:13 +00:00
|
|
|
};
|
|
|
|
}
|