2017-08-10 22:43:49 +03:00
|
|
|
{ stdenv, fetchzip }:
|
2015-09-15 01:47:58 +03:00
|
|
|
|
2017-08-10 22:43:49 +03:00
|
|
|
let
|
2018-02-18 14:32:59 +03:00
|
|
|
version = "3.002";
|
2017-08-10 22:43:49 +03:00
|
|
|
in fetchzip rec {
|
|
|
|
name = "hack-font-${version}";
|
2015-09-15 01:47:58 +03:00
|
|
|
|
2018-02-18 14:32:59 +03:00
|
|
|
url = "https://github.com/chrissimpkins/Hack/releases/download/v${version}/Hack-v${version}-ttf.zip";
|
2015-09-15 01:47:58 +03:00
|
|
|
|
2017-08-10 22:43:49 +03:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/hack
|
2015-09-15 01:47:58 +03:00
|
|
|
'';
|
|
|
|
|
2018-02-18 14:32:59 +03:00
|
|
|
sha256 = "11f3hl4nvxq6pvsmwr1c1r5wrxhrp7ixr5bshrz2dmqn7l8bxa63";
|
2017-08-10 22:43:49 +03:00
|
|
|
|
2015-09-15 01:47:58 +03:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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.
|
|
|
|
'';
|
2018-02-18 14:32:59 +03:00
|
|
|
homepage = https://sourcefoundry.org/hack/;
|
2015-09-15 01:47:58 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
"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;
|
2018-02-18 14:32:59 +03:00
|
|
|
maintainers = with maintainers; [ dywedir ];
|
2015-09-15 01:47:58 +03:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|