2020-02-29 04:03:06 +01:00
|
|
|
{ stdenv, fetchurl, writeText, tcl }:
|
2010-10-14 13:54:13 +02:00
|
|
|
|
2020-02-29 02:56:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "incrtcl";
|
2019-11-28 03:28:51 +01:00
|
|
|
version = "4.2.0";
|
2018-11-01 20:52:49 +01:00
|
|
|
|
2010-10-14 13:54:13 +02:00
|
|
|
src = fetchurl {
|
2020-02-29 02:56:11 +01:00
|
|
|
url = "mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itcl${version}.tar.gz";
|
2019-11-28 03:28:51 +01:00
|
|
|
sha256 = "0w28v0zaraxcq1s9pa6cihqqwqvvwfgz275lks7w4gl7hxjxmasw";
|
2010-10-14 13:54:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ tcl ];
|
|
|
|
configureFlags = [ "--with-tcl=${tcl}/lib" ];
|
2020-02-29 02:56:11 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-10-14 13:54:13 +02:00
|
|
|
patchPhase = ''
|
2020-02-29 02:56:11 +01:00
|
|
|
substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include"
|
2010-10-14 13:54:13 +02:00
|
|
|
'';
|
2020-02-29 02:56:11 +01:00
|
|
|
|
2010-10-14 13:54:13 +02:00
|
|
|
preConfigure = ''
|
2020-02-29 02:56:11 +01:00
|
|
|
configureFlags="--exec_prefix=$prefix $configureFlags"
|
2010-10-14 13:54:13 +02:00
|
|
|
'';
|
|
|
|
|
2020-02-29 02:56:11 +01:00
|
|
|
postInstall = ''
|
|
|
|
rmdir $out/bin
|
|
|
|
mv $out/lib/itcl${version}/* $out/lib
|
|
|
|
rmdir $out/lib/itcl${version}
|
|
|
|
'';
|
|
|
|
|
2020-02-29 04:03:06 +01:00
|
|
|
setupHook = writeText "setup-hook.sh" ''
|
|
|
|
export ITCL_LIBRARY=@out@/lib
|
|
|
|
'';
|
|
|
|
|
2020-02-29 02:56:11 +01:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
2010-10-14 13:54:13 +02:00
|
|
|
|
2018-11-01 20:52:49 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-02-29 02:56:11 +01:00
|
|
|
homepage = "http://incrtcl.sourceforge.net/";
|
2010-10-14 13:54:13 +02:00
|
|
|
description = "Object Oriented Enhancements for Tcl/Tk";
|
2020-02-29 02:56:11 +01:00
|
|
|
license = licenses.tcltk;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
2010-10-14 13:54:13 +02:00
|
|
|
};
|
|
|
|
}
|