mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 22:11:45 +03:00
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";
|
pname = "incrtcl";
|
||||||
version = "4.2.0";
|
version = "4.2.0";
|
||||||
|
|
||||||
src = fetchurl {
|
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";
|
sha256 = "0w28v0zaraxcq1s9pa6cihqqwqvvwfgz275lks7w4gl7hxjxmasw";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ tcl ];
|
buildInputs = [ tcl ];
|
||||||
configureFlags = [ "--with-tcl=${tcl}/lib" ];
|
configureFlags = [ "--with-tcl=${tcl}/lib" ];
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include"
|
substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include"
|
||||||
'';
|
|
||||||
preConfigure = ''
|
|
||||||
configureFlags="--exec_prefix=$prefix $configureFlags"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
preConfigure = ''
|
||||||
libPrefix = "itcl3.4";
|
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; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://incrtcl.sourceforge.net/;
|
homepage = "http://incrtcl.sourceforge.net/";
|
||||||
description = "Object Oriented Enhancements for Tcl/Tk";
|
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