git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #47690 from romildo/fix.icon-cache

build GTK icon caches for some packages

commita83dc7e3314d84fe09cd2d4ef315aa20d0824e25 authorMatthew Bauer <mjbauer95@gmail.com> dateMon 12 Nov 2018, 17:24 (8 years ago) parent964d01aa49fbb6
6 files changed+51−17
pkgs/data/icons/maia-icon-theme/default.nix+21−9 pkgs/data/icons/paper-icon-theme/default.nix+5 pkgs/desktops/enlightenment/efl.nix+5−2 pkgs/desktops/gnome-3/core/gnome-themes-extra/default.nix+4 pkgs/desktops/mate/mate-icon-theme-faenza/default.nix+9−3 pkgs/desktops/mate/mate-themes/default.nix+7−3
pkgs/data/icons/maia-icon-theme/default.nix+21−9
@@ -1,14 +1,16 @@
1−{ stdenv, fetchFromGitHub, cmake, extra-cmake-modules, gtk3, kdeFrameworks }:
1+{ stdenv, fetchFromGitLab, cmake, extra-cmake-modules, gtk3, kdeFrameworks, hicolor-icon-theme }:
22
33stdenv.mkDerivation rec {
44 name = "maia-icon-theme-${version}";
5− version = "2016-09-16";
5+ version = "2018-02-24";
66
7− src = fetchFromGitHub {
8− owner = "manjaro";
9− repo = "artwork-maia";
10− rev = "f6718cd9c383adb77af54b694c47efa4d581f5b5";
11− sha256 = "0f9l3k9abgg8islzddrxgbxaw6vbai5bvz5qi1v2fzir7ykx7bgj";
7+ src = fetchFromGitLab {
8+ domain = "gitlab.manjaro.org";
9+ group = "artwork";
10+ owner = "themes";
11+ repo = "maia";
12+ rev = "b61312cc80cb9d12b0d8a55b3e61668eb6b77d2d";
13+ sha256 = "1g98snlh96z4sqw9sfd7fxgamh45pcj3lh1kcmng7mirvrcn2pam";
1214 };
1315
1416 nativeBuildInputs = [
@@ -19,10 +21,20 @@ stdenv.mkDerivation rec {
1921 kdeFrameworks.kwindowsystem
2022 ];
2123
24+ buildInputs = [
25+ hicolor-icon-theme
26+ ];
27+
28+ postFixup = ''
29+ for theme in $out/share/icons/*; do
30+ gtk-update-icon-cache $theme
31+ done
32+ '';
33+
2234 meta = with stdenv.lib; {
2335 description = "Icons based on Breeze and Super Flat Remix";
24− homepage = https://github.com/manjaro/artwork-maia;
25− license = licenses.free; # https://github.com/manjaro/artwork-maia/issues/27
36+ homepage = https://gitlab.manjaro.org/artwork/themes/maia;
37+ license = licenses.lgpl3;
2638 maintainers = with maintainers; [ mounium ];
2739 platforms = platforms.all;
2840 };
pkgs/data/icons/paper-icon-theme/default.nix+5
@@ -18,6 +18,11 @@ stdenv.mkDerivation rec {
1818 patchShebangs meson/post_install.py
1919 '';
2020
21+ postInstall = ''
22+ # The cache for Paper-Mono-Dark is missing
23+ gtk-update-icon-cache "$out"/share/icons/Paper-Mono-Dark;
24+ '';
25+
2126 meta = with stdenv.lib; {
2227 description = "Modern icon theme designed around bold colours and simple geometric shapes";
2328 homepage = https://snwh.org/paper;
pkgs/desktops/enlightenment/efl.nix+5−2
@@ -3,7 +3,7 @@
33, libsndfile, xorg, libdrm, libxkbcommon, udev, utillinux, bullet, luajit
44, python27Packages, openjpeg, doxygen, expat, harfbuzz, jbig2dec, librsvg
55, dbus, alsaLib, poppler, ghostscript, libraw, libspectre, xineLib, libwebp
6−, curl, libinput, systemd, mesa_noglu, writeText
6+, curl, libinput, systemd, mesa_noglu, writeText, gtk3
77}:
88
99stdenv.mkDerivation rec {
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515 sha256 = "0a5907h896pvpix7a6idc2fspzy6d78xrzf84k8y9fyvnd14nxs4";
1616 };
1717
18− nativeBuildInputs = [ pkgconfig ];
18+ nativeBuildInputs = [ pkgconfig gtk3 ];
1919
2020 buildInputs = [ openssl zlib lz4 freetype fontconfig SDL libGL mesa_noglu
2121 giflib libpng libtiff glib gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
@@ -71,6 +71,9 @@ stdenv.mkDerivation rec {
7171 modules=$(for i in "$out/include/"*/; do printf ' -I''${includedir}/'`basename $i`; done)
7272 substituteInPlace "$out/lib/pkgconfig/efl.pc" --replace 'Cflags: -I''${includedir}/efl-1' \
7373 'Cflags: -I''${includedir}/eina-1/eina'"$modules"
74+
75+ # build icon cache
76+ gtk-update-icon-cache "$out"/share/icons/Enlightenment-X
7477 '';
7578
7679 # EFL applications depend on libcurl, although it is linked at
pkgs/desktops/gnome-3/core/gnome-themes-extra/default.nix+4
@@ -21,6 +21,10 @@ in stdenv.mkDerivation rec {
2121 nativeBuildInputs = [ pkgconfig intltool ];
2222 buildInputs = [ gtk3 librsvg pango atk gtk2 gdk_pixbuf gnome3.defaultIconTheme ];
2323
24+ postFixup = ''
25+ gtk-update-icon-cache "$out"/share/icons/HighContrast
26+ '';
27+
2428 meta = with stdenv.lib; {
2529 platforms = platforms.linux;
2630 maintainers = gnome3.maintainers;
pkgs/desktops/mate/mate-icon-theme-faenza/default.nix+9−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, autoreconfHook, mate, hicolor-icon-theme }:
1+{ stdenv, fetchurl, autoreconfHook, gtk3, mate, hicolor-icon-theme }:
22
33stdenv.mkDerivation rec {
44 name = "mate-icon-theme-faenza-${version}";
@@ -9,10 +9,16 @@ stdenv.mkDerivation rec {
99 sha256 = "000vr9cnbl2qlysf2gyg1lsjirqdzmwrnh6d3hyrsfc0r2vh4wna";
1010 };
1111
12− nativeBuildInputs = [ autoreconfHook ];
12+ nativeBuildInputs = [ autoreconfHook gtk3 ];
1313
1414 buildInputs = [ mate.mate-icon-theme hicolor-icon-theme ];
15−
15+
16+ postInstall = ''
17+ for theme in "$out"/share/icons/*; do
18+ gtk-update-icon-cache "$theme"
19+ done
20+ '';
21+
1622 meta = {
1723 description = "Faenza icon theme from MATE";
1824 homepage = http://mate-desktop.org;
pkgs/desktops/mate/mate-themes/default.nix+7−3
@@ -1,5 +1,5 @@
1−{ stdenv, fetchurl, pkgconfig, intltool, mate, gtk2, gtk_engines,
2− gtk-engine-murrine, gdk_pixbuf, librsvg }:
1+{ stdenv, fetchurl, pkgconfig, intltool, mate, gtk2, gtk3,
2+ gtk_engines, gtk-engine-murrine, gdk_pixbuf, librsvg }:
33
44stdenv.mkDerivation rec {
55 name = "mate-themes-${version}";
@@ -10,12 +10,16 @@ stdenv.mkDerivation rec {
1010 sha256 = "0538bw8qismp16ymxbjk0ww7yjw1ch5v3f3d4vib3770xvgmmcfm";
1111 };
1212
13− nativeBuildInputs = [ pkgconfig intltool ];
13+ nativeBuildInputs = [ pkgconfig intltool gtk3 ];
1414
1515 buildInputs = [ mate.mate-icon-theme gtk2 gtk_engines gdk_pixbuf librsvg ];
1616
1717 propagatedUserEnvPkgs = [ gtk-engine-murrine ];
1818
19+ postInstall = ''
20+ gtk-update-icon-cache "$out"/share/icons/ContrastHigh
21+ '';
22+
1923 meta = {
2024 description = "A set of themes from MATE";
2125 homepage = http://mate-desktop.org;