2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, tcl, tk, incrtcl }:
|
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 = "itk-tcl";
|
|
|
|
version = "4.1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itk${version}.tar.gz";
|
|
|
|
sha256 = "1iy964jfgsfnc1agk1w6bbm44x18ily8d4wmr7cc9z9f4acn2r6s";
|
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ tk incrtcl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-tk=${tk}/lib"
|
|
|
|
"--with-itcl=${incrtcl}/lib"
|
|
|
|
"--with-tkinclude=${tk.dev}/include"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rmdir $out/bin
|
|
|
|
mv $out/lib/itk${version}/* $out/lib
|
2020-11-30 08:33:03 +00:00
|
|
|
ln -s libitk${version}${stdenv.hostPlatform.extensions.sharedLibrary} \
|
2021-02-05 17:12:51 +00:00
|
|
|
$out/lib/libitk${lib.versions.major version}${stdenv.hostPlatform.extensions.sharedLibrary}
|
2020-04-24 23:36:52 +00:00
|
|
|
rmdir $out/lib/itk${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 = "Mega-widget toolkit for incr Tk";
|
|
|
|
license = licenses.tcltk;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|