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

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