Merge pull request #264845 from romildo/upd.papirus-icon-theme
papirus-icon-theme: 20230901 -> 20231101
This commit is contained in:
commit
489d27a235
3 changed files with 29 additions and 9 deletions
|
@ -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 {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "papirus-icon-theme";
|
pname = "papirus-icon-theme";
|
||||||
version = "20230901";
|
version = "20231101";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "PapirusDevelopmentTeam";
|
owner = "PapirusDevelopmentTeam";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-FcTNZgCdPlYjpheA3PfZBR3apOkDi4+RafQtXdqchGI=";
|
hash = "sha256-0ooHuMqGzlMLVTR/u+kCJLibfqTAtq662EG8i3JIzPA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gtk3 papirus-folders ];
|
nativeBuildInputs = [
|
||||||
|
gtk3
|
||||||
|
papirus-folders
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pantheon.elementary-icon-theme
|
|
||||||
breeze-icons
|
breeze-icons
|
||||||
gnome-icon-theme
|
|
||||||
hicolor-icon-theme
|
hicolor-icon-theme
|
||||||
|
] ++ lib.optional withElementary [
|
||||||
|
elementary-icon-theme
|
||||||
];
|
];
|
||||||
|
|
||||||
dontDropIconThemeCache = true;
|
dontDropIconThemeCache = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/share/icons
|
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
|
for theme in $out/share/icons/*; do
|
||||||
${lib.optionalString (color != null) "${papirus-folders}/bin/papirus-folders -t $theme -o -C ${color}"}
|
${lib.optionalString (color != null) "${papirus-folders}/bin/papirus-folders -t $theme -o -C ${color}"}
|
||||||
|
@ -35,8 +50,10 @@ stdenvNoCC.mkDerivation rec {
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = gitUpdater { };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Papirus icon theme";
|
description = "Pixel perfect icon theme for Linux";
|
||||||
homepage = "https://github.com/PapirusDevelopmentTeam/papirus-icon-theme";
|
homepage = "https://github.com/PapirusDevelopmentTeam/papirus-icon-theme";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
# darwin gives hash mismatch in source, probably because of file names differing only in case
|
# darwin gives hash mismatch in source, probably because of file names differing only in case
|
||||||
|
|
|
@ -30,7 +30,7 @@ stdenvNoCC.mkDerivation rec {
|
||||||
|
|
||||||
dontDropIconThemeCache = true;
|
dontDropIconThemeCache = true;
|
||||||
|
|
||||||
postFixup = ''
|
preFixup = ''
|
||||||
for theme in $out/share/icons/*; do
|
for theme in $out/share/icons/*; do
|
||||||
gtk-update-icon-cache $theme
|
gtk-update-icon-cache $theme
|
||||||
done
|
done
|
||||||
|
|
|
@ -29253,6 +29253,8 @@ with pkgs;
|
||||||
|
|
||||||
eduli = callPackage ../data/fonts/eduli { };
|
eduli = callPackage ../data/fonts/eduli { };
|
||||||
|
|
||||||
|
epapirus-icon-theme = papirus-icon-theme.override { withElementary = true; };
|
||||||
|
|
||||||
moeli = eduli;
|
moeli = eduli;
|
||||||
|
|
||||||
edusong = callPackage ../data/fonts/edusong { };
|
edusong = callPackage ../data/fonts/edusong { };
|
||||||
|
@ -29788,6 +29790,7 @@ with pkgs;
|
||||||
paper-icon-theme = callPackage ../data/icons/paper-icon-theme { };
|
paper-icon-theme = callPackage ../data/icons/paper-icon-theme { };
|
||||||
|
|
||||||
papirus-icon-theme = callPackage ../data/icons/papirus-icon-theme {
|
papirus-icon-theme = callPackage ../data/icons/papirus-icon-theme {
|
||||||
|
inherit (pantheon) elementary-icon-theme;
|
||||||
inherit (plasma5Packages) breeze-icons;
|
inherit (plasma5Packages) breeze-icons;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue