use material-icons 4 with otf and ttf
This commit is contained in:
parent
e052e01835
commit
cb7bedb398
2 changed files with 26 additions and 0 deletions
|
|
@ -21,6 +21,7 @@
|
||||||
overlays = {
|
overlays = {
|
||||||
discord = import ./overlays/discord.nix;
|
discord = import ./overlays/discord.nix;
|
||||||
linux = import ./overlays/linux.nix;
|
linux = import ./overlays/linux.nix;
|
||||||
|
material-icons = import ./overlays/material-icons.nix;
|
||||||
picom = import ./overlays/picom.nix;
|
picom = import ./overlays/picom.nix;
|
||||||
polybar = import ./overlays/polybar.nix;
|
polybar = import ./overlays/polybar.nix;
|
||||||
transcrypt = import ./overlays/transcrypt.nix;
|
transcrypt = import ./overlays/transcrypt.nix;
|
||||||
|
|
|
||||||
25
overlays/material-icons.nix
Normal file
25
overlays/material-icons.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
self: super: {
|
||||||
|
material-icons = let version = "4.0.0"; in super.fetchFromGitHub {
|
||||||
|
name = "material-icons-${version}";
|
||||||
|
|
||||||
|
owner = "google";
|
||||||
|
repo = "material-design-icons";
|
||||||
|
rev = version;
|
||||||
|
|
||||||
|
postFetch = ''
|
||||||
|
tar xf $downloadedFile --strip=1
|
||||||
|
mkdir -p $out/share/fonts/opentype $out/share/fonts/truetype
|
||||||
|
cp font/*.ttf $out/share/fonts/truetype
|
||||||
|
cp font/*.otf $out/share/fonts/opentype
|
||||||
|
'';
|
||||||
|
sha256 = "05g5b8dn8vkjv98lmfgbd92wb5i8cfgc9j5f9ai86xl4r58yx10a";
|
||||||
|
|
||||||
|
meta = with super.lib; {
|
||||||
|
description = "System status icons by Google, featuring material design";
|
||||||
|
homepage = "https://material.io/icons";
|
||||||
|
license = licenses.asl20;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = with maintainers; [ mpcsh ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue