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