about summary refs log tree commit diff
path: root/pkgs/data/fonts/material-icons/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/data/fonts/material-icons/default.nix')
-rw-r--r--pkgs/data/fonts/material-icons/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/data/fonts/material-icons/default.nix b/pkgs/data/fonts/material-icons/default.nix
new file mode 100644
index 000000000000..ea44c9c79b1e
--- /dev/null
+++ b/pkgs/data/fonts/material-icons/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 ];
+  };
+}