@@ -0,0 +1,34 @@
1+{ stdenvNoCC
2+, lib
3+, fetchFromGitHub
4+}:
5+
6+stdenvNoCC.mkDerivation rec {
7+ pname = "merriweather-sans";
8+ version = "1.008";
9+
10+ src = fetchFromGitHub {
11+ owner = "SorkinType";
12+ repo = "Merriweather-Sans";
13+ rev = "8a1b078e3aeec6aecc856c3422898816af9b9dc7";
14+ sha256 = "1f6a64bv4b4b1v3g2pgrzxcys8rk12wq6wfxamgzligcq5fxaffd";
15+ };
16+
17+ # TODO: it would be nice to build this from scratch, but lots of
18+ # Python dependencies to package (fontmake, gftools)
19+
20+ installPhase = ''
21+ install -m444 -Dt $out/share/fonts/truetype/${pname} fonts/ttfs/*.ttf
22+ install -m444 -Dt $out/share/fonts/woff/${pname} fonts/woff/*.woff
23+ install -m444 -Dt $out/share/fonts/woff2/${pname} fonts/woff2/*.woff2
24+ # TODO: install variable version?
25+ '';
26+
27+ meta = with lib; {
28+ homepage = "https://github.com/SorkinType/Merriweather-Sans";
29+ description = "Merriweather Sans is a low-contrast semi-condensed sans-serif text typeface family designed to be pleasant to read at very small sizes";
30+ license = licenses.ofl;
31+ platforms = platforms.all;
32+ maintainers = with maintainers; [ emily ];
33+ };
34+}