2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, writeText, tcl }:
|
2010-10-14 11:54:13 +00:00
|
|
|
|
2021-04-30 22:40:22 +00:00
|
|
|
tcl.mkTclDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "incrtcl";
|
2021-12-10 13:44:54 +00:00
|
|
|
version = "4.2.2";
|
2018-11-01 19:52:49 +00:00
|
|
|
|
2010-10-14 11:54:13 +00:00
|
|
|
src = fetchurl {
|
2020-02-29 01:56:11 +00:00
|
|
|
url = "mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itcl${version}.tar.gz";
|
2021-12-10 13:44:54 +00:00
|
|
|
sha256 = "sha256-rExnDq8bWyVb/KzKgyCzPVa72S/VRGPGPW9pmocOFWw=";
|
2010-10-14 11:54:13 +00:00
|
|
|
};
|
|
|
|
|
2020-02-29 01:56:11 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-10-14 11:54:13 +00:00
|
|
|
patchPhase = ''
|
2020-02-29 01:56:11 +00:00
|
|
|
substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include"
|
2010-10-14 11:54:13 +00:00
|
|
|
'';
|
2020-02-29 01:56:11 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rmdir $out/bin
|
|
|
|
mv $out/lib/itcl${version}/* $out/lib
|
2020-11-25 13:25:25 +00:00
|
|
|
ln -s libitcl${version}${stdenv.hostPlatform.extensions.sharedLibrary} \
|
2021-01-21 17:00:13 +00:00
|
|
|
$out/lib/libitcl${lib.versions.major version}${stdenv.hostPlatform.extensions.sharedLibrary}
|
2020-02-29 01:56:11 +00:00
|
|
|
rmdir $out/lib/itcl${version}
|
|
|
|
'';
|
|
|
|
|
2020-02-29 03:03:06 +00:00
|
|
|
setupHook = writeText "setup-hook.sh" ''
|
|
|
|
export ITCL_LIBRARY=@out@/lib
|
|
|
|
'';
|
|
|
|
|
2020-02-29 01:56:11 +00:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
2010-10-14 11:54:13 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-02-29 01:56:11 +00:00
|
|
|
homepage = "http://incrtcl.sourceforge.net/";
|
2010-10-14 11:54:13 +00:00
|
|
|
description = "Object Oriented Enhancements for Tcl/Tk";
|
2020-02-29 01:56:11 +00:00
|
|
|
license = licenses.tcltk;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
2010-10-14 11:54:13 +00:00
|
|
|
};
|
|
|
|
}
|