2008-02-03 15:17:22 +01:00
|
|
|
args: with args;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "tk-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/tcl/tk${version}-src.tar.gz";
|
|
|
|
sha256 = "0cciavzd05bpm5yfppid0s0vsf8kabwia9620vgvi26sv1gjgwhb";
|
|
|
|
};
|
|
|
|
postInstall = ''
|
2009-05-24 12:57:46 +02:00
|
|
|
echo -e '#! /bin/sh \n $( readlink -f $( type -tP wish${builtins.substring 0 3 version}) ) "$@"' >$out/bin/wish
|
2008-02-03 15:17:22 +01:00
|
|
|
chmod a+x $out/bin/wish
|
|
|
|
'';
|
|
|
|
configureFlags="--with-tcl=${tcl}/lib";
|
|
|
|
preConfigure = "cd unix";
|
|
|
|
|
|
|
|
buildInputs = [tcl x11];
|
|
|
|
inherit tcl;
|
|
|
|
}
|