···11+{ stdenvNoCC22+, lib33+, fetchFromGitHub44+}:55+66+stdenvNoCC.mkDerivation rec {77+ pname = "merriweather-sans";88+ version = "1.008";99+1010+ src = fetchFromGitHub {1111+ owner = "SorkinType";1212+ repo = "Merriweather-Sans";1313+ rev = "8a1b078e3aeec6aecc856c3422898816af9b9dc7";1414+ sha256 = "1f6a64bv4b4b1v3g2pgrzxcys8rk12wq6wfxamgzligcq5fxaffd";1515+ };1616+1717+ # TODO: it would be nice to build this from scratch, but lots of1818+ # Python dependencies to package (fontmake, gftools)1919+2020+ installPhase = ''2121+ install -m444 -Dt $out/share/fonts/truetype/${pname} fonts/ttfs/*.ttf2222+ install -m444 -Dt $out/share/fonts/woff/${pname} fonts/woff/*.woff2323+ install -m444 -Dt $out/share/fonts/woff2/${pname} fonts/woff2/*.woff22424+ # TODO: install variable version?2525+ '';2626+2727+ meta = with lib; {2828+ homepage = "https://github.com/SorkinType/Merriweather-Sans";2929+ description = "Merriweather Sans is a low-contrast semi-condensed sans-serif text typeface family designed to be pleasant to read at very small sizes";3030+ license = licenses.ofl;3131+ platforms = platforms.all;3232+ maintainers = with maintainers; [ emily ];3333+ };3434+}
+35
pkgs/data/fonts/merriweather/default.nix
···11+{ stdenvNoCC22+, lib33+, fetchFromGitHub44+}:55+66+stdenvNoCC.mkDerivation rec {77+ pname = "merriweather";88+ version = "2.005";99+1010+ src = fetchFromGitHub {1111+ owner = "SorkinType";1212+ repo = "Merriweather";1313+ rev = "4fd88c9299009d1c1d201e7da3ff75cf1de5153a";1414+ sha256 = "1ndycja2jzhcfbqbm0p6ka2zl1i1pdbkf0crw2lp3pi4k89wlm29";1515+ };1616+1717+ # TODO: it would be nice to build this from scratch, but lots of1818+ # Python dependencies to package (fontmake, gftools)1919+2020+ installPhase = ''2121+ install -m444 -Dt $out/share/fonts/opentype/${pname} fonts/otf/*.otf2222+ install -m444 -Dt $out/share/fonts/truetype/${pname} fonts/ttfs/*.ttf2323+ install -m444 -Dt $out/share/fonts/woff/${pname} fonts/woff/*.woff2424+ install -m444 -Dt $out/share/fonts/woff2/${pname} fonts/woff2/*.woff22525+ # TODO: install variable version?2626+ '';2727+2828+ meta = with lib; {2929+ homepage = "https://github.com/SorkinType/Merriweather";3030+ description = "Merriweather was designed to be a text face that is pleasant to read on screens";3131+ license = licenses.ofl;3232+ platforms = platforms.all;3333+ maintainers = with maintainers; [ emily ];3434+ };3535+}