Gajim uses $0 to determine the invoked program. So change the wrapping strategy

svn path=/nixpkgs/trunk/; revision=22069
This commit is contained in:
Michael Raskin 2010-05-31 21:10:06 +00:00
parent d36f3407de
commit d0b4c2e0c2

View File

@ -26,8 +26,19 @@ rec {
sed -e '/-L[$]x_libraries/d' -i configure
'') ["addInputs" "doUnpack"];
fixScriptNames = a.fullDepEntry (''
mkdir "$out"/bin-wrapped
for i in "$out"/bin/.*-wrapped; do
name="$i"
name="''${name%-wrapped}"
name="''${name##*/.}"
mv "$i" "$out/bin-wrapped/$name"
sed -e 's^'"$i"'^'"$out/bin-wrapped/$name"'^' -i "$out/bin/$name"
done
'') ["wrapBinContentsPython"];
/* doConfigure should be removed if not needed */
phaseNames = ["preConfigure" (a.doDump "1") "doConfigure" "doMakeInstall" "wrapBinContentsPython"];
phaseNames = ["preConfigure" (a.doDump "1") "doConfigure" "doMakeInstall" "wrapBinContentsPython" "fixScriptNames"];
name = "gajim-" + version;
meta = {