diff --git a/pkgs/data/icons/papirus-icon-theme/default.nix b/pkgs/data/icons/papirus-icon-theme/default.nix index 1de1411cb754..75237237e203 100644 --- a/pkgs/data/icons/papirus-icon-theme/default.nix +++ b/pkgs/data/icons/papirus-icon-theme/default.nix @@ -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 diff --git a/pkgs/desktops/deepin/artwork/deepin-icon-theme/default.nix b/pkgs/desktops/deepin/artwork/deepin-icon-theme/default.nix index dbb3dd5bf5ab..9ab40fc0b337 100644 --- a/pkgs/desktops/deepin/artwork/deepin-icon-theme/default.nix +++ b/pkgs/desktops/deepin/artwork/deepin-icon-theme/default.nix @@ -30,7 +30,7 @@ stdenvNoCC.mkDerivation rec { dontDropIconThemeCache = true; - postFixup = '' + preFixup = '' for theme in $out/share/icons/*; do gtk-update-icon-cache $theme done diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2d8d38524140..1b8a2a4e9986 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; };