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