Merge pull request #285460 from Guanran928/material-icons

material-icons: 3.0.1 -> 4.0.0 && cleanup
This commit is contained in:
Weijia Wang 2024-03-25 16:59:02 +01:00 committed by GitHub
commit 9dcbbe1a1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,25 +1,33 @@
{ lib, stdenvNoCC, fetchFromGitHub }:
{ lib, stdenvNoCC, fetchFromGitHub, nix-update-script }:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "material-icons";
version = "3.0.1";
version = "4.0.0";
src = fetchFromGitHub {
owner = "google";
repo = "material-design-icons";
rev = version;
hash = "sha256-4FphNJCsaLWzlVR4TmXnDBid0EVj39fkeoh5j1leBZ8=";
rev = finalAttrs.version;
hash = "sha256-wX7UejIYUxXOnrH2WZYku9ljv4ZAlvgk8EEJJHOCCjE=";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
cp iconfont/*.ttf $out/share/fonts/truetype
cp font/*.ttf $out/share/fonts/truetype
mkdir -p $out/share/fonts/opentype
cp font/*.otf $out/share/fonts/opentype
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "System status icons by Google, featuring material design";
homepage = "https://material.io/icons";
@ -27,4 +35,4 @@ stdenvNoCC.mkDerivation rec {
platforms = platforms.all;
maintainers = with maintainers; [ mpcsh ];
};
}
})