moka-icon-theme: build GTK icon cache
This commit is contained in:
parent
c087641f64
commit
cc3bd76540
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user