2022-08-12 12:06:08 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub, gtk3, pantheon, breeze-icons, gnome-icon-theme, hicolor-icon-theme, papirus-folders, color ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "papirus-icon-theme";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "20230601";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PapirusDevelopmentTeam";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-p47Vt1nR94bXtpWjNaIWJNKbdgFFMc0qCBeh2V98CJg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [ gtk3 papirus-folders ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pantheon.elementary-icon-theme
|
|
|
|
breeze-icons
|
|
|
|
gnome-icon-theme
|
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-04-05 15:23:46 +00:00
|
|
|
runHook preInstall
|
2020-05-03 17:38:23 +00:00
|
|
|
mkdir -p $out/share/icons
|
|
|
|
mv {,e}Papirus* $out/share/icons
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
for theme in $out/share/icons/*; do
|
2022-07-14 12:49:19 +00:00
|
|
|
${lib.optionalString (color != null) "${papirus-folders}/bin/papirus-folders -t $theme -o -C ${color}"}
|
|
|
|
gtk-update-icon-cache --force $theme
|
2020-04-24 23:36:52 +00:00
|
|
|
done
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Papirus icon theme";
|
|
|
|
homepage = "https://github.com/PapirusDevelopmentTeam/papirus-icon-theme";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
# darwin gives hash mismatch in source, probably because of file names differing only in case
|
|
|
|
platforms = platforms.linux;
|
2021-04-05 15:23:46 +00:00
|
|
|
maintainers = with maintainers; [ romildo fortuneteller2k ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|