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