summary refs log tree commit diff
path: root/pkgs/development/libraries/tk
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/tk')
-rw-r--r--pkgs/development/libraries/tk/8.4.16.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/tk/8.4.16.nix b/pkgs/development/libraries/tk/8.4.16.nix
index c43e53cc827..1f26db83f1b 100644
--- a/pkgs/development/libraries/tk/8.4.16.nix
+++ b/pkgs/development/libraries/tk/8.4.16.nix
@@ -7,7 +7,7 @@ stdenv.mkDerivation {
     sha256 = "0cciavzd05bpm5yfppid0s0vsf8kabwia9620vgvi26sv1gjgwhb";
   };
   postInstall = ''
-    echo -e '#! /bin/sh \n $( readlink -f $( which wish${__substring 0 3 version}) ) "$@"' >$out/bin/wish
+    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";