2018-02-24 11:49:40 +00:00
|
|
|
{ stdenv, fetchFromGitHub, gtk3 }:
|
2017-07-04 12:17:16 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "papirus-icon-theme-${version}";
|
2018-10-09 01:42:51 +01:00
|
|
|
version = "20181007";
|
2017-07-04 12:17:16 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PapirusDevelopmentTeam";
|
|
|
|
repo = "papirus-icon-theme";
|
2018-02-24 11:49:40 +00:00
|
|
|
rev = version;
|
2018-10-09 01:42:51 +01:00
|
|
|
sha256 = "1hv526k0ykq2yj9f6bcl711sgdxwx5y0yqjf5acpvcmx9pm58vz5";
|
2017-07-04 12:17:16 +01:00
|
|
|
};
|
|
|
|
|
2018-02-24 11:49:40 +00:00
|
|
|
nativeBuildInputs = [ gtk3 ];
|
2017-07-04 12:17:16 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2018-02-24 11:49:40 +00:00
|
|
|
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
|
2017-07-04 12:17:16 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-02-24 11:49:40 +00:00
|
|
|
description = "Papirus icon theme";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/PapirusDevelopmentTeam/papirus-icon-theme;
|
2017-07-04 12:17:16 +01:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|