about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2018-10-02 18:45:20 -0300
committerJosé Romildo Malaquias <malaquias@gmail.com>2018-11-12 21:08:27 -0200
commit18d31c2d2d2fdedf42f21e1df7b750ae8e6550be (patch)
treec516b477c0273afa6e42d4cb21037428d3a5172d /pkgs
parent83efc39766f742d840be24cbd6133ce11c08080c (diff)
mate-icon-theme-faenza: build GTK icon cache
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/desktops/mate/mate-icon-theme-faenza/default.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/desktops/mate/mate-icon-theme-faenza/default.nix b/pkgs/desktops/mate/mate-icon-theme-faenza/default.nix
index 2d868d2e0821f..03f8c62c448d5 100644
--- a/pkgs/desktops/mate/mate-icon-theme-faenza/default.nix
+++ b/pkgs/desktops/mate/mate-icon-theme-faenza/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, autoreconfHook, mate, hicolor-icon-theme }:
+{ stdenv, fetchurl, autoreconfHook, gtk3, mate, hicolor-icon-theme }:
 
 stdenv.mkDerivation rec {
   name = "mate-icon-theme-faenza-${version}";
@@ -9,10 +9,16 @@ stdenv.mkDerivation rec {
     sha256 = "000vr9cnbl2qlysf2gyg1lsjirqdzmwrnh6d3hyrsfc0r2vh4wna";
   };
 
-  nativeBuildInputs = [ autoreconfHook ];
+  nativeBuildInputs = [ autoreconfHook gtk3 ];
 
   buildInputs = [ mate.mate-icon-theme hicolor-icon-theme ];
-  
+
+  postInstall = ''
+    for theme in "$out"/share/icons/*; do
+      gtk-update-icon-cache "$theme"
+    done
+  '';
+
   meta = {
     description = "Faenza icon theme from MATE";
     homepage = http://mate-desktop.org;