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";
|
2023-03-12 08:25:17 +00:00
|
|
|
version = "4.2.3";
|
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";
|
2023-03-12 08:25:17 +00:00
|
|
|
sha256 = "sha256-idOs2GXP3ZY7ECtF+K9hg5REyK6sQ0qk+666gUQPjCY=";
|
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; {
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://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
|
|
|
};
|
|
|
|
}
|