2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gtk3, pantheon, breeze-icons, gnome-icon-theme, hicolor-icon-theme }:
|
2017-07-04 12:17:16 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-11 19:37:34 +01:00
|
|
|
pname = "papirus-icon-theme";
|
2021-03-04 01:54:02 +00:00
|
|
|
version = "20210302";
|
2017-07-04 12:17:16 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PapirusDevelopmentTeam";
|
2019-06-11 19:37:34 +01:00
|
|
|
repo = pname;
|
2018-02-24 11:49:40 +00:00
|
|
|
rev = version;
|
2021-03-04 01:54:02 +00:00
|
|
|
sha256 = "0h1cja8qqlnddm92hkyhkyj5rqfj494v0pss2mg95qqkjijpcgd0";
|
2017-07-04 12:17:16 +01:00
|
|
|
};
|
|
|
|
|
2020-04-18 00:52:55 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
2017-07-04 12:17:16 +01:00
|
|
|
|
2020-04-18 00:52:55 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pantheon.elementary-icon-theme
|
|
|
|
breeze-icons
|
|
|
|
gnome-icon-theme
|
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
2019-09-12 15:47:48 +01:00
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2017-07-04 12:17:16 +01:00
|
|
|
installPhase = ''
|
2020-04-18 00:52:55 +01:00
|
|
|
mkdir -p $out/share/icons
|
|
|
|
mv {,e}Papirus* $out/share/icons
|
2018-02-24 11:49:40 +00:00
|
|
|
|
|
|
|
for theme in $out/share/icons/*; do
|
|
|
|
gtk-update-icon-cache $theme
|
|
|
|
done
|
2017-07-04 12:17:16 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-02-24 11:49:40 +00:00
|
|
|
description = "Papirus icon theme";
|
2020-03-04 09:40:07 +00:00
|
|
|
homepage = "https://github.com/PapirusDevelopmentTeam/papirus-icon-theme";
|
2021-03-04 01:54:02 +00:00
|
|
|
license = licenses.gpl3Only;
|
2019-06-11 19:41:18 +01:00
|
|
|
# darwin gives hash mismatch in source, probably because of file names differing only in case
|
|
|
|
platforms = platforms.linux;
|
2019-06-11 19:43:13 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2017-07-04 12:17:16 +01:00
|
|
|
};
|
|
|
|
}
|