moka-icon-theme: build GTK icon cache

+7 -7
+7 -7
pkgs/data/icons/moka-icon-theme/default.nix
··· 1 - { stdenv, fetchFromGitHub, autoreconfHook, faba-icon-theme }: 1 + { stdenv, fetchFromGitHub, autoreconfHook, faba-icon-theme, gtk3 }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "${package-name}-${version}"; 5 - package-name = "moka-icon-theme"; 4 + name = "${pname}-${version}"; 5 + pname = "moka-icon-theme"; 6 6 version = "5.3.6"; 7 7 8 8 src = fetchFromGitHub { 9 9 owner = "snwh"; 10 - repo = package-name; 10 + repo = pname; 11 11 rev = "v${version}"; 12 12 sha256 = "17f8k8z8xvib4hkxq0cw9j7bhdpqpv5frrkyc4sbyildcbavzzbr"; 13 13 }; 14 14 15 - nativeBuildInputs = [ autoreconfHook ]; 16 - 17 - buildInputs = [ faba-icon-theme ]; 15 + nativeBuildInputs = [ autoreconfHook faba-icon-theme gtk3 ]; 18 16 19 17 postPatch = '' 20 18 substituteInPlace Makefile.am --replace '$(DESTDIR)'/usr $out 21 19 ''; 20 + 21 + postFixup = "gtk-update-icon-cache $out/share/icons/Moka"; 22 22 23 23 meta = with stdenv.lib; { 24 24 description = "An icon theme designed with a minimal flat style using simple geometry and bright colours";