From c689e8404080c451f9495d75ce57dbdc428c717f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Wed, 1 Nov 2023 14:00:35 -0300 Subject: [PATCH] papirus-icon-theme: add update script --- .../data/icons/papirus-icon-theme/default.nix | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/pkgs/data/icons/papirus-icon-theme/default.nix b/pkgs/data/icons/papirus-icon-theme/default.nix index be53cafa434a..4c4b14d412e1 100644 --- a/pkgs/data/icons/papirus-icon-theme/default.nix +++ b/pkgs/data/icons/papirus-icon-theme/default.nix @@ -1,4 +1,15 @@ -{ lib, stdenvNoCC, fetchFromGitHub, gtk3, pantheon, breeze-icons, gnome-icon-theme, hicolor-icon-theme, papirus-folders, color ? null }: +{ lib +, stdenvNoCC +, fetchFromGitHub +, gtk3 +, pantheon +, breeze-icons +, gnome-icon-theme +, hicolor-icon-theme +, papirus-folders +, color ? null +, gitUpdater +}: stdenvNoCC.mkDerivation rec { pname = "papirus-icon-theme"; @@ -11,7 +22,10 @@ stdenvNoCC.mkDerivation rec { hash = "sha256-FcTNZgCdPlYjpheA3PfZBR3apOkDi4+RafQtXdqchGI="; }; - nativeBuildInputs = [ gtk3 papirus-folders ]; + nativeBuildInputs = [ + gtk3 + papirus-folders + ]; propagatedBuildInputs = [ pantheon.elementary-icon-theme @@ -24,6 +38,7 @@ stdenvNoCC.mkDerivation rec { installPhase = '' runHook preInstall + mkdir -p $out/share/icons mv {,e}Papirus* $out/share/icons @@ -35,6 +50,8 @@ stdenvNoCC.mkDerivation rec { runHook postInstall ''; + passthru.updateScript = gitUpdater { }; + meta = with lib; { description = "Papirus icon theme"; homepage = "https://github.com/PapirusDevelopmentTeam/papirus-icon-theme";