From bb6bbce00337a523a1b79194800c4622e8fabac7 Mon Sep 17 00:00:00 2001 From: Mark Cohen Date: Wed, 2 Aug 2017 02:48:27 -0400 Subject: [PATCH] material-icons-ttf: init at 3.0.1 There was no package for this icon set, and now there is! --- lib/maintainers.nix | 1 + .../data/fonts/material-icons-ttf/default.nix | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 pkgs/data/fonts/material-icons-ttf/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index e5286fa995ef..f65420e93e96 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -377,6 +377,7 @@ MostAwesomeDude = "Corbin Simpson "; mounium = "Katona László "; MP2E = "Cray Elliott "; + mpcsh = "Mark Cohen "; mpscholten = "Marc Scholten "; mpsyco = "Francis St-Amour "; msackman = "Matthew Sackman "; diff --git a/pkgs/data/fonts/material-icons-ttf/default.nix b/pkgs/data/fonts/material-icons-ttf/default.nix new file mode 100644 index 000000000000..ea44c9c79b1e --- /dev/null +++ b/pkgs/data/fonts/material-icons-ttf/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "material-icons-${version}"; + version = "3.0.1"; + + src = fetchFromGitHub { + owner = "google"; + repo = "material-design-icons"; + rev = "${version}"; + sha256 = "17q5brcqyyc8gbjdgpv38p89s60cwxjlwy2ljnrvas5cj0s62np0"; + }; + + buildCommand = '' + mkdir -p $out/share/fonts/truetype + cp $src/iconfont/*.ttf $out/share/fonts/truetype + ''; + + meta = with stdenv.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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6dd9427c2ce0..b74ee2cfd4e0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13034,6 +13034,8 @@ with pkgs; man-pages = callPackage ../data/documentation/man-pages { }; + material-icons-ttf = callPackage ../data/fonts/material-icons-ttf { }; + meslo-lg = callPackage ../data/fonts/meslo-lg {}; miscfiles = callPackage ../data/misc/miscfiles { };