summary refs log tree commit diff
path: root/pkgs/development/libraries/tk/8.4.16.nix
blob: 38b7ec8574950beb419db964b18d7fb2dc8781f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 $( type -tP wish${builtins.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;
}