about summary refs log tree commit diff
path: root/pkgs/data/fonts/encode-sans
diff options
context:
space:
mode:
authorcmfwyp <cmfwyp@riseup.net>2016-09-10 21:24:58 -0400
committerRobert Helgesson <robert@rycee.net>2016-09-12 11:13:32 +0200
commit470855ed82091ed22edb51c4544ccf2ea9c1df93 (patch)
tree89aaae204ec1c02427d3b7900ff996786a73d34f /pkgs/data/fonts/encode-sans
parent49e5e972b95925b41e91dd6479e03d37eeeb3c64 (diff)
encode-sans: init at 1.002
Diffstat (limited to 'pkgs/data/fonts/encode-sans')
-rw-r--r--pkgs/data/fonts/encode-sans/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/data/fonts/encode-sans/default.nix b/pkgs/data/fonts/encode-sans/default.nix
new file mode 100644
index 0000000000000..e0f79b2722ce0
--- /dev/null
+++ b/pkgs/data/fonts/encode-sans/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  name = "encode-sans-1.002";
+
+  src = fetchFromGitHub {
+    owner = "impallari";
+    repo = "Encode-Sans";
+    rev = "11162b46892d20f55bd42a00b48cbf06b5871f75";
+    sha256 = "1v5k79qlsl6nggilmjw56axwwr2b3838x6vqch4lh0dck5ri9w2c";
+  };
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/truetype
+    mkdir -p $out/share/doc/${name}
+    cp -v *.ttf $out/share/fonts/truetype/
+    cp -v README.md FONTLOG.txt $out/share/doc/${name}
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A versatile sans serif font family";
+    longDescription = ''
+      The Encode Sans family is a versatile workhorse. Featuring a huge range of
+      weights and widths, it's ready for all kind of typographic challenges. It
+      also includes Tabular and Old Style figures, as well as full set of Small
+      Caps and other Open Type features.
+
+      Designed by Pablo Impallari and Andres Torresi.
+    '';
+    homepage = http://www.impallari.com/projects/overview/encode;
+    license = licenses.ofl;
+    maintainers = with maintainers; [ cmfwyp ];
+    platforms = platforms.all;
+  };
+}