1 { lib, stdenv, fetchurl, writeText, tcl }:
3 tcl.mkTclDerivation rec {
8 url = "mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itcl${version}.tar.gz";
9 sha256 = "sha256-idOs2GXP3ZY7ECtF+K9hg5REyK6sQ0qk+666gUQPjCY=";
12 enableParallelBuilding = true;
15 substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include"
20 mv $out/lib/itcl${version}/* $out/lib
21 ln -s libitcl${version}${stdenv.hostPlatform.extensions.sharedLibrary} \
22 $out/lib/libitcl${lib.versions.major version}${stdenv.hostPlatform.extensions.sharedLibrary}
23 rmdir $out/lib/itcl${version}
26 setupHook = writeText "setup-hook.sh" ''
27 export ITCL_LIBRARY=@out@/lib
30 outputs = [ "out" "dev" "man" ];
33 homepage = "https://incrtcl.sourceforge.net/";
34 description = "Object Oriented Enhancements for Tcl/Tk";
35 license = licenses.tcltk;
36 platforms = platforms.unix;
37 maintainers = with maintainers; [ thoughtpolice ];