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 <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2014-01-06 14:15:58 +01:00
parent aae2bab821
commit 3a5334f853
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -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;