mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
Merge pull request #214174 from fufexan/material-symbols
material-symbols: init at unstable-2023-01-07
This commit is contained in:
commit
ce18482c53
39
pkgs/data/fonts/material-symbols/default.nix
Normal file
39
pkgs/data/fonts/material-symbols/default.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenvNoCC
|
||||||
|
, fetchFromGitHub
|
||||||
|
, rename
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation {
|
||||||
|
pname = "material-symbols";
|
||||||
|
version = "unstable-2023-01-07";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "google";
|
||||||
|
repo = "material-design-icons";
|
||||||
|
rev = "511eea577b20d2b02ad77477750da1e44c66a52c";
|
||||||
|
sha256 = "sha256-ENoWeyV9Dw26pgjy0Xst+qpxJ/mjgfqrY2Du2VwzwCE=";
|
||||||
|
sparseCheckout = [ "variablefont" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ rename ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
rename 's/\[FILL,GRAD,opsz,wght\]//g' variablefont/*
|
||||||
|
install -Dm755 variablefont/*.ttf -t $out/share/fonts/TTF
|
||||||
|
install -Dm755 variablefont/*.woff2 -t $out/share/fonts/woff2
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Material Symbols icons by Google";
|
||||||
|
homepage = "https://fonts.google.com/icons";
|
||||||
|
downloadPage = "https://github.com/google/material-design-icons";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ fufexan ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -27395,6 +27395,8 @@ with pkgs;
|
|||||||
|
|
||||||
material-icons = callPackage ../data/fonts/material-icons { };
|
material-icons = callPackage ../data/fonts/material-icons { };
|
||||||
|
|
||||||
|
material-symbols = callPackage ../data/fonts/material-symbols { };
|
||||||
|
|
||||||
material-kwin-decoration = libsForQt5.callPackage ../data/themes/material-kwin-decoration { };
|
material-kwin-decoration = libsForQt5.callPackage ../data/themes/material-kwin-decoration { };
|
||||||
|
|
||||||
meslo-lg = callPackage ../data/fonts/meslo-lg {};
|
meslo-lg = callPackage ../data/fonts/meslo-lg {};
|
||||||
|
Loading…
Reference in New Issue
Block a user