summary refs log tree commit diff
path: root/pkgs/data/fonts/hack
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-09-15 00:47:58 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-09-15 00:47:58 +0200
commitc545bc80f68a44d0d0e1cc85290d74d1d57c09fa (patch)
tree6e1ab53096da2f03c3e46be4666c9c541afbf0cf /pkgs/data/fonts/hack
parent133a31f71f9ec30616f49fc35fb98c6e80333660 (diff)
downloadnixpkgs-c545bc80f68a44d0d0e1cc85290d74d1d57c09fa.tar
nixpkgs-c545bc80f68a44d0d0e1cc85290d74d1d57c09fa.tar.gz
nixpkgs-c545bc80f68a44d0d0e1cc85290d74d1d57c09fa.tar.bz2
nixpkgs-c545bc80f68a44d0d0e1cc85290d74d1d57c09fa.tar.lz
nixpkgs-c545bc80f68a44d0d0e1cc85290d74d1d57c09fa.tar.xz
nixpkgs-c545bc80f68a44d0d0e1cc85290d74d1d57c09fa.tar.zst
nixpkgs-c545bc80f68a44d0d0e1cc85290d74d1d57c09fa.zip
hack (font): init at 2.013
Diffstat (limited to 'pkgs/data/fonts/hack')
-rw-r--r--pkgs/data/fonts/hack/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/data/fonts/hack/default.nix b/pkgs/data/fonts/hack/default.nix
new file mode 100644
index 00000000000..522847a5241
--- /dev/null
+++ b/pkgs/data/fonts/hack/default.nix
@@ -0,0 +1,49 @@
+{ stdenv, fetchurl, unzip }:
+
+let version = "2.013"; in
+stdenv.mkDerivation {
+  name = "hack-font-${version}";
+
+  src = let
+    version_ = with stdenv.lib;
+      concatStringsSep "_" (splitString "." version);
+  in fetchurl {
+    sha256 = "16lap1796baiyn50fag3gszv7l1c5v62pvlr57ww501ka024gnnk";
+    url = "https://github.com/chrissimpkins/Hack/releases/download/v${version}/Hack-v${version_}-ttf.zip";
+  };
+
+  sourceRoot = ".";
+
+  nativeBuildInputs = [ unzip ];
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/hack
+    cp *.ttf $out/share/fonts/hack
+  '';
+
+  meta = with stdenv.lib; {
+    inherit version;
+    description = "A typeface designed for source code";
+    longDescription = ''
+      Hack is hand groomed and optically balanced to be a workhorse face for
+      code. It has deep roots in the libre, open source typeface community and
+      expands upon the contributions of the Bitstream Vera & DejaVu projects.
+      The face has been re-designed with a larger glyph set, modifications of
+      the original glyph shapes, and meticulous attention to metrics.
+    '';
+    homepage = http://sourcefoundry.org/hack/;
+
+    /*
+     "The font binaries are released under a license that permits unlimited
+      print, desktop, and web use for commercial and non-commercial
+      applications. It may be embedded and distributed in documents and
+      applications. The source is released in the widely supported UFO format
+      and may be modified to derive new typeface branches. The full text of
+      the license is available in LICENSE.md" (From the GitHub page)
+    */
+    license = licenses.free;
+
+    platforms = platforms.all;
+    maintainers = with maintainers; [ nckx ];
+  };
+}