summary refs log tree commit diff
path: root/pkgs/applications/graphics/mypaint
diff options
context:
space:
mode:
authorCillian de Róiste <goibhniu@fsfe.org>2013-11-24 16:33:50 +0100
committerCillian de Róiste <goibhniu@fsfe.org>2013-11-24 16:34:10 +0100
commit18685b7d449e25750fa924142ca192445b18dd25 (patch)
treed54a0d4487c25c277ba5895f22b2de04a15854eb /pkgs/applications/graphics/mypaint
parent4f199ef7bb490bc6dedb82360e37519cfa56e24b (diff)
downloadnixpkgs-18685b7d449e25750fa924142ca192445b18dd25.tar
nixpkgs-18685b7d449e25750fa924142ca192445b18dd25.tar.gz
nixpkgs-18685b7d449e25750fa924142ca192445b18dd25.tar.bz2
nixpkgs-18685b7d449e25750fa924142ca192445b18dd25.tar.lz
nixpkgs-18685b7d449e25750fa924142ca192445b18dd25.tar.xz
nixpkgs-18685b7d449e25750fa924142ca192445b18dd25.tar.zst
nixpkgs-18685b7d449e25750fa924142ca192445b18dd25.zip
MyPaint, fix impurity: add hicolor_icon_theme wrapper to ensure MyPaint can start
MyPaint fails to find its own icons and refuses to start if another
icon theme is not available on the system. Running
gtk-update-icon-cache on MyPaint's share/icons/hicolor folder did not
help, and setting the XDG_DATA_DIRS to point to MyPaint's icons also
didn't work.

https://gna.org/bugs/?18460

Thanks to Kim Simmons for reporting this and helping to debug.
Diffstat (limited to 'pkgs/applications/graphics/mypaint')
-rw-r--r--pkgs/applications/graphics/mypaint/default.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/applications/graphics/mypaint/default.nix b/pkgs/applications/graphics/mypaint/default.nix
index e5b711e11f2..be8df8ef16d 100644
--- a/pkgs/applications/graphics/mypaint/default.nix
+++ b/pkgs/applications/graphics/mypaint/default.nix
@@ -1,5 +1,6 @@
-{ stdenv, fetchurl, gettext, glib, gtk, json_c, lcms2, libpng
-, makeWrapper, pkgconfig, pygtk, python, pythonPackages, scons, swig
+{ stdenv, fetchurl, gettext, glib, gtk, hicolor_icon_theme, json_c
+, lcms2, libpng , makeWrapper, pkgconfig, pygtk, python, pythonPackages
+, scons, swig
 }:
 
 stdenv.mkDerivation rec {
@@ -11,19 +12,21 @@ stdenv.mkDerivation rec {
     sha256 = "0f7848hr65h909c0jkcx616flc0r4qh53g3kd1cgs2nr1pjmf3bq";
   };
 
-  buildInputs = [ 
+  buildInputs = [
     gettext glib gtk json_c lcms2 libpng makeWrapper pkgconfig pygtk
     python scons swig
   ];
- 
-  propagatedBuildInputs = [ pythonPackages.numpy ];
+
+  propagatedBuildInputs = [ hicolor_icon_theme pythonPackages.numpy ];
 
   buildPhase = "scons prefix=$out";
 
   installPhase = ''
     scons prefix=$out install
     sed -i -e 's|/usr/bin/env python2.7|${python}/bin/python|' $out/bin/mypaint
-    wrapProgram $out/bin/mypaint --prefix PYTHONPATH : $PYTHONPATH
+    wrapProgram $out/bin/mypaint \
+      --prefix PYTHONPATH : $PYTHONPATH \
+      --prefix XDG_DATA_DIRS ":" "${hicolor_icon_theme}/share"
   '';
 
   meta = with stdenv.lib; {