nixpkgs/pkgs/development/libraries/tk/8.4.16.nix
Yury G. Kudryashov 63e46d78d0 Fixed stable socat (applied patch by Nicolas Pierron); updated Tk installation step for XMaxima compatibility
svn path=/nixpkgs/branches/stdenv-updates/; revision=10576
2008-02-10 17:36:23 +00:00

19 lines
496 B
Nix

args: with args;
stdenv.mkDerivation {
name = "tk-${version}";
src = fetchurl {
url = "mirror://sourceforge/tcl/tk${version}-src.tar.gz";
sha256 = "0cciavzd05bpm5yfppid0s0vsf8kabwia9620vgvi26sv1gjgwhb";
};
postInstall = ''
echo -e '#! /bin/sh \n $( readlink -f $( which wish${__substring 0 3 version}) ) "$@"' >$out/bin/wish
chmod a+x $out/bin/wish
'';
configureFlags="--with-tcl=${tcl}/lib";
preConfigure = "cd unix";
buildInputs = [tcl x11];
inherit tcl;
}