at 18.09-beta 1.5 kB view raw
1{ stdenv, fetchzip }: 2 3let 4 version = "3.003"; 5in fetchzip rec { 6 name = "hack-font-${version}"; 7 8 url = "https://github.com/chrissimpkins/Hack/releases/download/v${version}/Hack-v${version}-ttf.zip"; 9 10 postFetch = '' 11 mkdir -p $out/share/fonts 12 unzip -j $downloadedFile \*.ttf -d $out/share/fonts/hack 13 ''; 14 15 sha256 = "1l6ih6v7dqali5c7zh6z2xnbf9h2wz0ag6fdgszmqd5lnhw39v6s"; 16 17 meta = with stdenv.lib; { 18 description = "A typeface designed for source code"; 19 longDescription = '' 20 Hack is hand groomed and optically balanced to be a workhorse face for 21 code. It has deep roots in the libre, open source typeface community and 22 expands upon the contributions of the Bitstream Vera & DejaVu projects. 23 The face has been re-designed with a larger glyph set, modifications of 24 the original glyph shapes, and meticulous attention to metrics. 25 ''; 26 homepage = https://sourcefoundry.org/hack/; 27 28 /* 29 "The font binaries are released under a license that permits unlimited 30 print, desktop, and web use for commercial and non-commercial 31 applications. It may be embedded and distributed in documents and 32 applications. The source is released in the widely supported UFO format 33 and may be modified to derive new typeface branches. The full text of 34 the license is available in LICENSE.md" (From the GitHub page) 35 */ 36 license = licenses.free; 37 maintainers = with maintainers; [ dywedir ]; 38 platforms = platforms.all; 39 }; 40}