1{ lib, fetchzip, stdenvNoCC }:
2
3stdenvNoCC.mkDerivation (finalAttrs: {
4 pname = "raleway";
5 version = "4.101";
6
7 src = fetchzip {
8 url = "https://github.com/theleagueof/raleway/releases/download/${finalAttrs.version}/Raleway-${finalAttrs.version}.tar.xz";
9 hash = "sha256-itNHIMoRjiaqYAJoDNetkCquv47VAfel8MAzwsd//Ww=";
10 };
11
12 installPhase = ''
13 runHook preInstall
14
15 install -D -m444 -t $out/share/fonts/truetype $src/static/TTF/*.ttf
16 install -D -m444 -t $out/share/fonts/opentype $src/static/OTF/*.otf
17
18 runHook postInstall
19 '';
20
21 meta = {
22 description = "Raleway is an elegant sans-serif typeface family";
23 longDescription = ''
24 Initially designed by Matt McInerney as a single thin weight, it was
25 expanded into a 9 weight family by Pablo Impallari and Rodrigo Fuenzalida
26 in 2012 and iKerned by Igino Marini. In 2013 the Italics where added, and
27 most recently — a variable version.
28
29 It features both old style and lining numerals, standard and
30 discretionary ligatures, a pretty complete set of diacritics, as well as
31 a stylistic alternate inspired by more geometric sans-serif typefaces
32 than its neo-grotesque inspired default character set.
33
34 It also has a sister display family, Raleway Dots.
35 '';
36 homepage = "https://www.theleagueofmoveabletype.com/raleway";
37 license = lib.licenses.ofl;
38 maintainers = with lib.maintainers; [ minijackson ];
39 };
40})