moka-icon-theme: build GTK icon cache

This commit is contained in:
Yegor Timoshenko 2018-02-24 11:12:37 +00:00
parent c087641f64
commit cc3bd76540

View File

@ -1,25 +1,25 @@
{ stdenv, fetchFromGitHub, autoreconfHook, faba-icon-theme }: { stdenv, fetchFromGitHub, autoreconfHook, faba-icon-theme, gtk3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${package-name}-${version}"; name = "${pname}-${version}";
package-name = "moka-icon-theme"; pname = "moka-icon-theme";
version = "5.3.6"; version = "5.3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "snwh"; owner = "snwh";
repo = package-name; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "17f8k8z8xvib4hkxq0cw9j7bhdpqpv5frrkyc4sbyildcbavzzbr"; sha256 = "17f8k8z8xvib4hkxq0cw9j7bhdpqpv5frrkyc4sbyildcbavzzbr";
}; };
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook faba-icon-theme gtk3 ];
buildInputs = [ faba-icon-theme ];
postPatch = '' postPatch = ''
substituteInPlace Makefile.am --replace '$(DESTDIR)'/usr $out substituteInPlace Makefile.am --replace '$(DESTDIR)'/usr $out
''; '';
postFixup = "gtk-update-icon-cache $out/share/icons/Moka";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "An icon theme designed with a minimal flat style using simple geometry and bright colours"; description = "An icon theme designed with a minimal flat style using simple geometry and bright colours";
homepage = https://snwh.org/moka; homepage = https://snwh.org/moka;