numix-icon-theme-circle: build GTK icon cache

+8 -4
+8 -4
pkgs/data/icons/numix-icon-theme-circle/default.nix
··· 1 - { stdenv, fetchFromGitHub, numix-icon-theme }: 1 + { stdenv, fetchFromGitHub, gtk3, numix-icon-theme }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "18-02-16"; ··· 14 14 sha256 = "0q08q1czsk6h0dxqscbgryr12xaakp4zbch37z0jxpwh087gnq4f"; 15 15 }; 16 16 17 - buildInputs = [ numix-icon-theme ]; 18 - 19 - dontBuild = true; 17 + nativeBuildInputs = [ gtk3 numix-icon-theme ]; 20 18 21 19 installPhase = '' 22 20 install -dm 755 $out/share/icons 23 21 cp -dr --no-preserve='ownership' Numix-Circle{,-Light} $out/share/icons/ 22 + ''; 23 + 24 + postFixup = '' 25 + for theme in $out/share/icons/*; do 26 + gtk-update-icon-cache $theme 27 + done 24 28 ''; 25 29 26 30 meta = with stdenv.lib; {