elementary-xfce-icon-theme: refactor, build GTK icon cache

This commit is contained in:
Yegor Timoshenko 2018-02-24 11:11:06 +00:00
parent 5a22c587eb
commit b22c33fb94
1 changed files with 7 additions and 10 deletions

View File

@ -11,24 +11,21 @@ stdenv.mkDerivation rec {
sha256 = "15n28f2pw8b0y5pi8ydahg31v6hhh7zvpvymi8jaafdc9bn18z3y"; sha256 = "15n28f2pw8b0y5pi8ydahg31v6hhh7zvpvymi8jaafdc9bn18z3y";
}; };
# fallback icon theme nativeBuildInputs = [ gtk3 hicolor_icon_theme ];
propagatedBuildInputs = [ hicolor_icon_theme ];
dontBuild = true;
installPhase = '' installPhase = ''
install -dm 755 $out/share/icons mkdir -p $out/share/icons
cp -dr --no-preserve='ownership' elementary-xfce{,-dark,-darker,-darkest} $out/share/icons/ mv elementary-xfce* $out/share/icons
''; '';
postInstall = '' postFixup = ''
for icons in "$out"/share/icons/*; do for theme in $out/share/icons/*; do
"${gtk3.out}/bin/gtk-update-icon-cache" "$icons" gtk-update-icon-cache $theme
done done
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Elementary icons for Xfce and other Gtk+ desktops like Gnome3"; description = "Elementary icons for Xfce and other GTK+ desktops like GNOME";
homepage = https://github.com/shimmerproject/elementary-xfce; homepage = https://github.com/shimmerproject/elementary-xfce;
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.unix; platforms = platforms.unix;