Merge pull request #38311 from qfjp/submit/finch-fix

Use lib/purple-2 directory instead of lib/pidgin
This commit is contained in:
Matthew Justin Bauer 2018-04-17 09:55:00 -05:00 committed by GitHub
commit 3207b7e71d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,14 +16,14 @@ stdenv.mkDerivation rec {
buildInputs = [ pidgin libwebp libgcrypt gettext ];
preConfigure = ''
sed -i "s|/etc/telegram-purple/server.tglpub|$out/lib/pidgin/server.tglpub|g" telegram-purple.c
sed -i "s|/etc/telegram-purple/server.tglpub|$out/lib/purple-2/server.tglpub|g" telegram-purple.c
echo "#define GIT_COMMIT \"${builtins.substring 0 10 src.rev}\"" > commit.h
'';
installPhase = ''
mkdir -p $out/lib/pidgin/
cp bin/*.so $out/lib/pidgin/ #*/
cp tg-server.tglpub $out/lib/pidgin/server.tglpub
mkdir -p $out/lib/purple-2/
cp bin/*.so $out/lib/purple-2/ #*/
cp tg-server.tglpub $out/lib/purple-2/server.tglpub
mkdir -p $out/pixmaps/pidgin/protocols/{16,22,48}
cp imgs/telegram16.png $out/pixmaps/pidgin/protocols/16
cp imgs/telegram22.png $out/pixmaps/pidgin/protocols/22