about summary refs log tree commit diff
path: root/pkgs/development/libraries/tk
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2008-07-07 11:46:01 +0000
committerPeter Simons <simons@cryp.to>2008-07-07 11:46:01 +0000
commitcff0831471ea0e0384f3212c0b2968724b3f88c9 (patch)
treeb92a0a113ef45aeeb14fd847a65e5d26133a221f /pkgs/development/libraries/tk
parent5f044d6f3fd89b0fb5f194bc6196cde76c2db4af (diff)
tk: update to 8.4.18
svn path=/nixpkgs/trunk/; revision=12295
Diffstat (limited to 'pkgs/development/libraries/tk')
-rw-r--r--pkgs/development/libraries/tk/8.4.18.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/libraries/tk/8.4.18.nix b/pkgs/development/libraries/tk/8.4.18.nix
new file mode 100644
index 0000000000000..f09303ade4593
--- /dev/null
+++ b/pkgs/development/libraries/tk/8.4.18.nix
@@ -0,0 +1,18 @@
+args: with args;
+
+stdenv.mkDerivation {
+  name = "tk-${version}";
+  src = fetchurl {
+    url = "mirror://sourceforge/tcl/tk${version}-src.tar.gz";
+    sha256 = "065cbs82a8nklmj4867744skb3l3mqv14s8jwribk2wazzdb0mqp";
+  };
+  postInstall = ''
+    echo -e '#! /bin/sh \n $( readlink -f $( type -tP 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;
+}