From 3a5334f853db5fb77466a93f6fc79dca6b4ed28b Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 6 Jan 2014 14:15:58 +0100 Subject: [PATCH] tkabber: Properly wrap all scripts in $out/bin. Alongside "tkabber", there is also "tkabber-remote", which uses the same variables as the main script and thus needs to be wrapped the same way as well. Signed-off-by: aszlig --- .../networking/instant-messengers/tkabber/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/tkabber/default.nix b/pkgs/applications/networking/instant-messengers/tkabber/default.nix index 53a334f6869..79c3d3d32cc 100644 --- a/pkgs/applications/networking/instant-messengers/tkabber/default.nix +++ b/pkgs/applications/networking/instant-messengers/tkabber/default.nix @@ -36,10 +36,12 @@ in stdenv.mkDerivation rec { ''; postInstall = '' - wrapProgram $out/bin/tkabber \ - --prefix PATH : "${tk}/bin" \ - --set TCLLIBPATH '"${tclLibPaths}"' \ - --set TKABBER_SITE_PLUGINS '$HOME/.nix-profile/share/tkabber-plugins' + for prog in $out/bin/*; do + wrapProgram "$prog" \ + --prefix PATH : "${tk}/bin" \ + --set TCLLIBPATH '"${tclLibPaths}"' \ + --set TKABBER_SITE_PLUGINS '$HOME/.nix-profile/share/tkabber-plugins' + done ''; buildInputs = [ tcl tk x11 makeWrapper ] ++ tclLibraries;