1{ lib, fetchFromGitHub, stdenvNoCC }:
2
3stdenvNoCC.mkDerivation {
4 pname = "junction";
5 version = "2014-05-29";
6
7 src = fetchFromGitHub {
8 owner = "theleagueof";
9 repo = "junction";
10 rev = "fb73260e86dd301b383cf6cc9ca8e726ef806535";
11 hash = "sha256-Zqh23HPWGed+JkADYjYdsVNRxqJDvC9xhnqAqWZ3Eu8=";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 install -D -m444 -t $out/share/fonts/opentype $src/*.otf
18
19 runHook postInstall
20 '';
21
22 meta = {
23 description = "Junction is a a humanist sans-serif font";
24 longDescription = ''
25 Junction is a a humanist sans-serif, and the first open-source type
26 project started by The League of Moveable Type. It has been updated
27 (2014) to include additional weights (light/bold) and expanded
28 international support.
29 '';
30 homepage = "https://www.theleagueofmoveabletype.com/junction";
31 license = lib.licenses.ofl;
32 maintainers = with lib.maintainers; [ minijackson ];
33 };
34}