tribler: strip pngs (close #8810)

This prevents libpng exceptions from being thrown.
Accepted upstream: https://github.com/Tribler/tribler/pull/1561
This commit is contained in:
John Chee 2015-07-13 21:28:36 -07:00 committed by Vladimír Čunát
parent 068db75d68
commit 225ae4c5f8

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pythonPackages, makeWrapper, nettools, libtorrentRasterbar
{ stdenv, fetchurl, pythonPackages, makeWrapper, nettools, libtorrentRasterbar, imagemagick
, enablePlayer ? false, vlc ? null }:
@ -15,6 +15,7 @@ stdenv.mkDerivation rec {
pythonPackages.python
pythonPackages.wrapPython
makeWrapper
imagemagick
];
pythonPath = [
@ -36,6 +37,7 @@ stdenv.mkDerivation rec {
installPhase =
''
find . -name '*.png' -exec convert -strip {} {} \;
# Nasty hack; call wrapPythonPrograms to set program_PYTHONPATH.
wrapPythonPrograms