summary refs log tree commit diff
path: root/pkgs/data/icons/moka-icon-theme
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@riseup.net>2018-02-24 11:12:37 +0000
committerYegor Timoshenko <yegortimoshenko@riseup.net>2018-02-24 11:12:37 +0000
commitcc3bd7654017405d2a1e911ab2c104c421f3786b (patch)
tree39de3b9d96a7429e3ffe9db74addcf6741378130 /pkgs/data/icons/moka-icon-theme
parentc087641f64a7a4f0afbd91a9d2b91448914df41d (diff)
downloadnixpkgs-cc3bd7654017405d2a1e911ab2c104c421f3786b.tar
nixpkgs-cc3bd7654017405d2a1e911ab2c104c421f3786b.tar.gz
nixpkgs-cc3bd7654017405d2a1e911ab2c104c421f3786b.tar.bz2
nixpkgs-cc3bd7654017405d2a1e911ab2c104c421f3786b.tar.lz
nixpkgs-cc3bd7654017405d2a1e911ab2c104c421f3786b.tar.xz
nixpkgs-cc3bd7654017405d2a1e911ab2c104c421f3786b.tar.zst
nixpkgs-cc3bd7654017405d2a1e911ab2c104c421f3786b.zip
moka-icon-theme: build GTK icon cache
Diffstat (limited to 'pkgs/data/icons/moka-icon-theme')
-rw-r--r--pkgs/data/icons/moka-icon-theme/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/data/icons/moka-icon-theme/default.nix b/pkgs/data/icons/moka-icon-theme/default.nix
index 5ac2a13be4d..f3180db54dc 100644
--- a/pkgs/data/icons/moka-icon-theme/default.nix
+++ b/pkgs/data/icons/moka-icon-theme/default.nix
@@ -1,25 +1,25 @@
-{ stdenv, fetchFromGitHub, autoreconfHook, faba-icon-theme }:
+{ stdenv, fetchFromGitHub, autoreconfHook, faba-icon-theme, gtk3 }:
 
 stdenv.mkDerivation rec {
-  name = "${package-name}-${version}";
-  package-name = "moka-icon-theme";
+  name = "${pname}-${version}";
+  pname = "moka-icon-theme";
   version = "5.3.6";
 
   src = fetchFromGitHub {
     owner = "snwh";
-    repo = package-name;
+    repo = pname;
     rev = "v${version}";
     sha256 = "17f8k8z8xvib4hkxq0cw9j7bhdpqpv5frrkyc4sbyildcbavzzbr";
   };
 
-  nativeBuildInputs = [ autoreconfHook ];
-
-  buildInputs = [ faba-icon-theme ];
+  nativeBuildInputs = [ autoreconfHook faba-icon-theme gtk3 ];
 
   postPatch = ''
     substituteInPlace Makefile.am --replace '$(DESTDIR)'/usr $out
   '';
 
+  postFixup = "gtk-update-icon-cache $out/share/icons/Moka";
+
   meta = with stdenv.lib; {
     description = "An icon theme designed with a minimal flat style using simple geometry and bright colours";
     homepage = https://snwh.org/moka;