incrtcl: chores, maintain it, touch up results
Soon, this will be needed for the Bluespec compiler. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
c6c200f118
commit
87f098f094
@ -1,31 +1,39 @@
|
||||
{stdenv, fetchurl, tcl}:
|
||||
{ stdenv, fetchurl, tcl }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "incrtcl";
|
||||
version = "4.2.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itcl4.2.0.tar.gz;
|
||||
url = "mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itcl${version}.tar.gz";
|
||||
sha256 = "0w28v0zaraxcq1s9pa6cihqqwqvvwfgz275lks7w4gl7hxjxmasw";
|
||||
};
|
||||
|
||||
buildInputs = [ tcl ];
|
||||
configureFlags = [ "--with-tcl=${tcl}/lib" ];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include"
|
||||
'';
|
||||
preConfigure = ''
|
||||
configureFlags="--exec_prefix=$prefix $configureFlags"
|
||||
substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
libPrefix = "itcl3.4";
|
||||
};
|
||||
preConfigure = ''
|
||||
configureFlags="--exec_prefix=$prefix $configureFlags"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
rmdir $out/bin
|
||||
mv $out/lib/itcl${version}/* $out/lib
|
||||
rmdir $out/lib/itcl${version}
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" "man" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://incrtcl.sourceforge.net/;
|
||||
homepage = "http://incrtcl.sourceforge.net/";
|
||||
description = "Object Oriented Enhancements for Tcl/Tk";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.tcltk;
|
||||
license = licenses.tcltk;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ thoughtpolice ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user