2020-02-29 01:57:39 +00:00
|
|
|
{ stdenv, fetchurl, tcl, tk, incrtcl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ tcl tk incrtcl ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-tcl=${tcl}/lib"
|
|
|
|
"--with-tk=${tk}/lib"
|
|
|
|
"--with-itcl=${incrtcl}/lib"
|
2020-02-29 03:03:21 +00:00
|
|
|
"--with-tkinclude=${tk.dev}/include"
|
2020-02-29 01:57:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rmdir $out/bin
|
|
|
|
mv $out/lib/itk${version}/* $out/lib
|
2020-11-25 13:25:25 +00:00
|
|
|
ln -s libitk${version}${stdenv.hostPlatform.extensions.sharedLibrary} \
|
|
|
|
$out/lib/libitk${stdenv.lib.versions.major version}${stdenv.hostPlatform.extensions.sharedLibrary}
|
2020-02-29 01:57:39 +00:00
|
|
|
rmdir $out/lib/itk${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://incrtcl.sourceforge.net/";
|
|
|
|
description = "Mega-widget toolkit for incr Tk";
|
|
|
|
license = licenses.tcltk;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|