2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gtk3, pantheon, breeze-icons, gnome-icon-theme, hicolor-icon-theme }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "papirus-icon-theme";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "20210802";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PapirusDevelopmentTeam";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "sha256-run7F1iGq1h7o06zS/RNpCMhK5WDH++knLN+MvMcSy8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ gtk3 ];
|
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
|
|
|
|
gtk-update-icon-cache $theme
|
|
|
|
done
|
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
|
|
|
};
|
|
|
|
}
|