Merge pull request #35466 from yegortimoshenko/20180224.103545/icon-theme

Build GTK icon cache for most themes
This commit is contained in:
Jörg Thalheim 2018-02-24 14:20:46 +00:00 committed by GitHub
commit 8da17c3f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 87 additions and 82 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, moka-icon-theme }: { stdenv, fetchFromGitHub, autoreconfHook, gtk3, moka-icon-theme }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${package-name}-${version}"; name = "${package-name}-${version}";
@ -12,14 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "1ch3hp08qri93510hypzz6m2x4xgg2h15wvnhjwh1x1s1b7jvxjd"; sha256 = "1ch3hp08qri93510hypzz6m2x4xgg2h15wvnhjwh1x1s1b7jvxjd";
}; };
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook gtk3 moka-icon-theme ];
buildInputs = [ moka-icon-theme ]; postFixup = "gtk-update-icon-cache $out/share/icons/Arc";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Arc icon theme"; description = "Arc icon theme";
homepage = https://github.com/horst3180/arc-icon-theme; homepage = https://github.com/horst3180/arc-icon-theme;
license = with licenses; [ gpl3 ]; license = licenses.gpl3;
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ romildo ]; maintainers = with maintainers; [ romildo ];
}; };

View File

@ -1,26 +1,19 @@
{ stdenv, fetchurl }: { stdenv, fetchurl, cmake, gtk3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "elementary-icon-theme-${version}";
version = "4.3.1"; version = "4.3.1";
package-name = "elementary-icon-theme";
name = "${package-name}-${version}";
src = fetchurl { src = fetchurl {
url = "https://launchpad.net/elementaryicons/4.x/${version}/+download/${name}.tar.xz"; url = "https://launchpad.net/elementaryicons/4.x/${version}/+download/${name}.tar.xz";
sha256 = "1rp22igvnx71l94j5a6px142329djhk2psm1wfgbhdxbj23hw9kb"; sha256 = "1rp22igvnx71l94j5a6px142329djhk2psm1wfgbhdxbj23hw9kb";
}; };
dontBuild = true; nativeBuildInputs = [ cmake gtk3 ];
postPatch = "cat > volumeicon/CMakeLists.txt";
postFixup = "gtk-update-icon-cache $out/share/icons/elementary";
installPhase = ''
install -dm 755 $out/share/{icons,doc/$name}
cp -dr --no-preserve='ownership' . $out/share/icons/Elementary/
mv $out/share/icons/Elementary/{AUTHORS,CONTRIBUTORS,README.md} \
$out/share/doc/$name/
rm $out/share/icons/Elementary/{COPYING,pre-commit}
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Elementary icon theme"; description = "Elementary icon theme";

View File

@ -11,24 +11,21 @@ stdenv.mkDerivation rec {
sha256 = "15n28f2pw8b0y5pi8ydahg31v6hhh7zvpvymi8jaafdc9bn18z3y"; sha256 = "15n28f2pw8b0y5pi8ydahg31v6hhh7zvpvymi8jaafdc9bn18z3y";
}; };
# fallback icon theme nativeBuildInputs = [ gtk3 hicolor_icon_theme ];
propagatedBuildInputs = [ hicolor_icon_theme ];
dontBuild = true;
installPhase = '' installPhase = ''
install -dm 755 $out/share/icons mkdir -p $out/share/icons
cp -dr --no-preserve='ownership' elementary-xfce{,-dark,-darker,-darkest} $out/share/icons/ mv elementary-xfce* $out/share/icons
''; '';
postInstall = '' postFixup = ''
for icons in "$out"/share/icons/*; do for theme in $out/share/icons/*; do
"${gtk3.out}/bin/gtk-update-icon-cache" "$icons" gtk-update-icon-cache $theme
done done
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Elementary icons for Xfce and other Gtk+ desktops like Gnome3"; description = "Elementary icons for Xfce and other GTK+ desktops like GNOME";
homepage = https://github.com/shimmerproject/elementary-xfce; homepage = https://github.com/shimmerproject/elementary-xfce;
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.unix; platforms = platforms.unix;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, elementary-icon-theme }: { stdenv, fetchFromGitHub, autoreconfHook, elementary-icon-theme, gtk3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${package-name}-${version}"; name = "${package-name}-${version}";
@ -12,14 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "0hif030pd4w3s851k0s65w0mf2pik10ha25ycpsv91gpbgarqcns"; sha256 = "0hif030pd4w3s851k0s65w0mf2pik10ha25ycpsv91gpbgarqcns";
}; };
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook elementary-icon-theme gtk3 ];
buildInputs = [ elementary-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/Faba";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A sexy and modern icon theme with Tango influences"; description = "A sexy and modern icon theme with Tango influences";
homepage = https://snwh.org/moka; homepage = https://snwh.org/moka;

View File

@ -1,25 +1,29 @@
{ stdenv, fetchFromGitHub, autoreconfHook, moka-icon-theme }: { stdenv, fetchFromGitHub, autoreconfHook, gtk3, moka-icon-theme }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${package-name}-${version}"; name = "${pname}-${version}";
package-name = "faba-mono-icons"; pname = "faba-mono-icons";
version = "2016-04-30"; version = "2016-04-30";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "snwh"; owner = "snwh";
repo = package-name; repo = pname;
rev = "2006c5281eb988c799068734f289a85443800cda"; rev = "2006c5281eb988c799068734f289a85443800cda";
sha256 = "0nisfl92y6hrbakp9qxi0ygayl6avkzrhwirg6854bwqjy2dvjv9"; sha256 = "0nisfl92y6hrbakp9qxi0ygayl6avkzrhwirg6854bwqjy2dvjv9";
}; };
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook gtk3 moka-icon-theme ];
buildInputs = [ moka-icon-theme ]; postFixup = ''
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "The full set of Faba monochrome panel icons"; description = "The full set of Faba monochrome panel icons";
homepage = https://snwh.org/moka; homepage = https://snwh.org/moka;
license = with licenses; [ gpl3 ]; license = licenses.gpl3;
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ romildo ]; maintainers = with maintainers; [ romildo ];
}; };

View File

@ -10,9 +10,9 @@ stdenv.mkDerivation rec {
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;
meta = { meta = with stdenv.lib; {
description = "Default fallback theme used by implementations of the icon theme specification"; description = "Default fallback theme used by implementations of the icon theme specification";
homepage = https://icon-theme.freedesktop.org/releases/; homepage = https://icon-theme.freedesktop.org/releases/;
platforms = with stdenv.lib.platforms; linux ++ darwin; platforms = platforms.unix;
}; };
} }

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }: { stdenv, fetchFromGitHub, cmake, extra-cmake-modules, gtk3, kdeFrameworks }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "maia-icon-theme-${version}"; name = "maia-icon-theme-${version}";
@ -11,21 +11,19 @@ stdenv.mkDerivation rec {
sha256 = "0f9l3k9abgg8islzddrxgbxaw6vbai5bvz5qi1v2fzir7ykx7bgj"; sha256 = "0f9l3k9abgg8islzddrxgbxaw6vbai5bvz5qi1v2fzir7ykx7bgj";
}; };
dontBuild = true; nativeBuildInputs = [
cmake
installPhase = '' extra-cmake-modules
install -dm 755 $out/share/icons gtk3
for f in "" "-dark"; do kdeFrameworks.plasma-framework
rm icons$f/CMakeLists.txt kdeFrameworks.kwindowsystem
cp -dr --no-preserve='ownership' icons$f $out/share/icons/maia$f ];
done
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Icons based on Breeze and Super Flat Remix"; description = "Icons based on Breeze and Super Flat Remix";
homepage = https://github.com/manjaro/artwork-maia; homepage = https://github.com/manjaro/artwork-maia;
license = licenses.free; license = licenses.free; # https://github.com/manjaro/artwork-maia/issues/27
maintainers = [ maintainers.mounium ]; maintainers = with maintainers; [ mounium ];
platforms = platforms.all; platforms = platforms.all;
}; };
} }

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;

View File

@ -1,26 +1,28 @@
{ stdenv, fetchFromGitHub, hicolor_icon_theme }: { stdenv, fetchFromGitHub, gtk3, hicolor_icon_theme }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "numix-icon-theme";
version = "17-12-25"; version = "17-12-25";
package-name = "numix-icon-theme";
name = "${package-name}-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "numixproject"; owner = "numixproject";
repo = package-name; repo = pname;
rev = version; rev = version;
sha256 = "0q3hpq2jc9iwnzzqpb12g1qzjsw4ckhdqkfqf6nirl87r5drkv6j"; sha256 = "0q3hpq2jc9iwnzzqpb12g1qzjsw4ckhdqkfqf6nirl87r5drkv6j";
}; };
buildInputs = [ hicolor_icon_theme ]; nativeBuildInputs = [ gtk3 hicolor_icon_theme ];
dontBuild = true;
installPhase = '' installPhase = ''
install -dm 755 $out/share/icons mkdir -p $out/share/icons
cp -dr --no-preserve='ownership' Numix{,-Light} $out/share/icons/ mv Numix{,-Light} $out/share/icons
'';
postFixup = ''
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -1,18 +1,24 @@
{ stdenv, fetchFromGitHub, autoreconfHook }: { stdenv, fetchFromGitHub, autoreconfHook, gtk3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${package-name}-${version}"; name = "${pname}-${version}";
package-name = "paper-icon-theme"; pname = "paper-icon-theme";
version = "2017-11-20"; version = "2017-11-20";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "snwh"; owner = "snwh";
repo = package-name; repo = pname;
rev = "af0296ecc872ad723fad7dca6e7e89eb85cbb3a8"; rev = "af0296ecc872ad723fad7dca6e7e89eb85cbb3a8";
sha256 = "18a9zl9lbw9gc3zas49w329xrps4slvkp4nv815nlnmimz8dj85m"; sha256 = "18a9zl9lbw9gc3zas49w329xrps4slvkp4nv815nlnmimz8dj85m";
}; };
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook gtk3 ];
postFixup = ''
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Modern icon theme designed around bold colours and simple geometric shapes"; description = "Modern icon theme designed around bold colours and simple geometric shapes";

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }: { stdenv, fetchFromGitHub, gtk3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "papirus-icon-theme-${version}"; name = "papirus-icon-theme-${version}";
@ -7,20 +7,25 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "PapirusDevelopmentTeam"; owner = "PapirusDevelopmentTeam";
repo = "papirus-icon-theme"; repo = "papirus-icon-theme";
rev = "${version}"; rev = version;
sha256 = "10q7ppizzqi8c564jydqivia43gp4j1z984igfyym2mdwdw71mzq"; sha256 = "10q7ppizzqi8c564jydqivia43gp4j1z984igfyym2mdwdw71mzq";
}; };
dontBuild = true; nativeBuildInputs = [ gtk3 ];
installPhase = '' installPhase = ''
install -dm 755 $out/share/icons mkdir -p $out/share/icons
cp -dr Papirus{,-Dark,-Light} $out/share/icons/ mv {,e}Papirus* $out/share/icons
cp -dr ePapirus $out/share/icons/ '';
postFixup = ''
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Papirus icon theme for Linux"; description = "Papirus icon theme";
homepage = https://github.com/PapirusDevelopmentTeam/papirus-icon-theme; homepage = https://github.com/PapirusDevelopmentTeam/papirus-icon-theme;
license = licenses.lgpl3; license = licenses.lgpl3;
platforms = platforms.all; platforms = platforms.all;