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