forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / ma / material-symbols / package.nix
blob8af5fa9d0d2476d861ebb8e27052c29a510199aa
2   lib,
3   stdenvNoCC,
4   fetchFromGitHub,
5   rename,
6   unstableGitUpdater,
7 }:
8 stdenvNoCC.mkDerivation {
9   pname = "material-symbols";
10   version = "4.0.0-unstable-2024-05-17";
12   src = fetchFromGitHub {
13     owner = "google";
14     repo = "material-design-icons";
15     rev = "ace1af08508a6562ef05055a606cf44ea583ce3b";
16     hash = "sha256-d5lojgYCXCcvcSfLWfcSKFsBGKB6Si/XreRqpkEKsa0=";
17     sparseCheckout = [ "variablefont" ];
18   };
20   nativeBuildInputs = [ rename ];
22   installPhase = ''
23     runHook preInstall
25     rename 's/\[FILL,GRAD,opsz,wght\]//g' variablefont/*
26     install -Dm755 variablefont/*.ttf -t $out/share/fonts/TTF
27     install -Dm755 variablefont/*.woff2 -t $out/share/fonts/woff2
29     runHook postInstall
30   '';
32   passthru.updateScript = unstableGitUpdater { };
34   meta = {
35     description = "Material Symbols icons by Google";
36     homepage = "https://fonts.google.com/icons";
37     downloadPage = "https://github.com/google/material-design-icons";
38     license = lib.licenses.asl20;
39     maintainers = with lib.maintainers; [
40       fufexan
41       luftmensch-luftmensch
42     ];
43     platforms = lib.platforms.all;
44   };