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

+7 -10
+7 -10
pkgs/data/icons/elementary-xfce-icon-theme/default.nix
··· 11 sha256 = "15n28f2pw8b0y5pi8ydahg31v6hhh7zvpvymi8jaafdc9bn18z3y"; 12 }; 13 14 - # fallback icon theme 15 - propagatedBuildInputs = [ hicolor_icon_theme ]; 16 - 17 - dontBuild = true; 18 19 installPhase = '' 20 - install -dm 755 $out/share/icons 21 - cp -dr --no-preserve='ownership' elementary-xfce{,-dark,-darker,-darkest} $out/share/icons/ 22 ''; 23 24 - postInstall = '' 25 - for icons in "$out"/share/icons/*; do 26 - "${gtk3.out}/bin/gtk-update-icon-cache" "$icons" 27 done 28 ''; 29 30 meta = with stdenv.lib; { 31 - description = "Elementary icons for Xfce and other Gtk+ desktops like Gnome3"; 32 homepage = https://github.com/shimmerproject/elementary-xfce; 33 license = licenses.gpl2; 34 platforms = platforms.unix;
··· 11 sha256 = "15n28f2pw8b0y5pi8ydahg31v6hhh7zvpvymi8jaafdc9bn18z3y"; 12 }; 13 14 + nativeBuildInputs = [ gtk3 hicolor_icon_theme ]; 15 16 installPhase = '' 17 + mkdir -p $out/share/icons 18 + mv elementary-xfce* $out/share/icons 19 ''; 20 21 + postFixup = '' 22 + for theme in $out/share/icons/*; do 23 + gtk-update-icon-cache $theme 24 done 25 ''; 26 27 meta = with stdenv.lib; { 28 + description = "Elementary icons for Xfce and other GTK+ desktops like GNOME"; 29 homepage = https://github.com/shimmerproject/elementary-xfce; 30 license = licenses.gpl2; 31 platforms = platforms.unix;