papirus-icon-theme: build GTK icon cache

This commit is contained in:
Yegor Timoshenko 2018-02-24 11:49:40 +00:00
parent 09b54dec1d
commit cd4afaca45

View File

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