3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #264845 from romildo/upd.papirus-icon-theme

papirus-icon-theme: 20230901 -> 20231101
This commit is contained in:
José Romildo Malaquias 2023-11-21 16:48:24 -03:00 committed by GitHub
commit 489d27a235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 9 deletions

View file

@ -1,31 +1,46 @@
{ lib, stdenvNoCC, fetchFromGitHub, gtk3, pantheon, breeze-icons, gnome-icon-theme, hicolor-icon-theme, papirus-folders, color ? null }:
{ lib
, stdenvNoCC
, fetchFromGitHub
, gtk3
, breeze-icons
, elementary-icon-theme
, hicolor-icon-theme
, papirus-folders
, color ? null
, withElementary ? false
, gitUpdater
}:
stdenvNoCC.mkDerivation rec {
pname = "papirus-icon-theme";
version = "20230901";
version = "20231101";
src = fetchFromGitHub {
owner = "PapirusDevelopmentTeam";
repo = pname;
rev = version;
hash = "sha256-FcTNZgCdPlYjpheA3PfZBR3apOkDi4+RafQtXdqchGI=";
hash = "sha256-0ooHuMqGzlMLVTR/u+kCJLibfqTAtq662EG8i3JIzPA=";
};
nativeBuildInputs = [ gtk3 papirus-folders ];
nativeBuildInputs = [
gtk3
papirus-folders
];
propagatedBuildInputs = [
pantheon.elementary-icon-theme
breeze-icons
gnome-icon-theme
hicolor-icon-theme
] ++ lib.optional withElementary [
elementary-icon-theme
];
dontDropIconThemeCache = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
mv {,e}Papirus* $out/share/icons
mv ${lib.optionalString withElementary "{,e}"}Papirus* $out/share/icons
for theme in $out/share/icons/*; do
${lib.optionalString (color != null) "${papirus-folders}/bin/papirus-folders -t $theme -o -C ${color}"}
@ -35,8 +50,10 @@ stdenvNoCC.mkDerivation rec {
runHook postInstall
'';
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Papirus icon theme";
description = "Pixel perfect icon theme for Linux";
homepage = "https://github.com/PapirusDevelopmentTeam/papirus-icon-theme";
license = licenses.gpl3Only;
# darwin gives hash mismatch in source, probably because of file names differing only in case

View file

@ -30,7 +30,7 @@ stdenvNoCC.mkDerivation rec {
dontDropIconThemeCache = true;
postFixup = ''
preFixup = ''
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done

View file

@ -29253,6 +29253,8 @@ with pkgs;
eduli = callPackage ../data/fonts/eduli { };
epapirus-icon-theme = papirus-icon-theme.override { withElementary = true; };
moeli = eduli;
edusong = callPackage ../data/fonts/edusong { };
@ -29788,6 +29790,7 @@ with pkgs;
paper-icon-theme = callPackage ../data/icons/paper-icon-theme { };
papirus-icon-theme = callPackage ../data/icons/papirus-icon-theme {
inherit (pantheon) elementary-icon-theme;
inherit (plasma5Packages) breeze-icons;
};