@@ -0,0 +1,35 @@
1+{ stdenvNoCC
2+, lib
3+, fetchFromGitHub
4+}:
5+
6+stdenvNoCC.mkDerivation rec {
7+ pname = "merriweather";
8+ version = "2.005";
9+
10+ src = fetchFromGitHub {
11+ owner = "SorkinType";
12+ repo = "Merriweather";
13+ rev = "4fd88c9299009d1c1d201e7da3ff75cf1de5153a";
14+ sha256 = "1ndycja2jzhcfbqbm0p6ka2zl1i1pdbkf0crw2lp3pi4k89wlm29";
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/opentype/${pname} fonts/otf/*.otf
22+ install -m444 -Dt $out/share/fonts/truetype/${pname} fonts/ttfs/*.ttf
23+ install -m444 -Dt $out/share/fonts/woff/${pname} fonts/woff/*.woff
24+ install -m444 -Dt $out/share/fonts/woff2/${pname} fonts/woff2/*.woff2
25+ # TODO: install variable version?
26+ '';
27+
28+ meta = with lib; {
29+ homepage = "https://github.com/SorkinType/Merriweather";
30+ description = "Merriweather was designed to be a text face that is pleasant to read on screens";
31+ license = licenses.ofl;
32+ platforms = platforms.all;
33+ maintainers = with maintainers; [ emily ];
34+ };
35+}