material-icons: add update script

This commit is contained in:
Guanran Wang 2024-02-01 14:25:10 +08:00
parent 3a440b1186
commit 009036e6eb
No known key found for this signature in database
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ lib, stdenvNoCC, fetchFromGitHub }:
{ lib, stdenvNoCC, fetchFromGitHub, nix-update-script }:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "material-icons";
@ -7,7 +7,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "google";
repo = "material-design-icons";
rev = version;
rev = finalAttrs.version;
hash = "sha256-wX7UejIYUxXOnrH2WZYku9ljv4ZAlvgk8EEJJHOCCjE=";
};
@ -26,6 +26,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "System status icons by Google, featuring material design";
homepage = "https://material.io/icons";