mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
papirus-icon-theme: build GTK icon cache
This commit is contained in:
parent
09b54dec1d
commit
cd4afaca45
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user