Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 38 lines 1.1 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchzip, 5}: 6 7# Source Serif Pro got renamed to Source Serif 4 (see 8# https://github.com/adobe-fonts/source-serif/issues/77). This is the 9# last version named "Pro". It is useful for backward compatibility 10# with older documents/templates/etc. 11 12stdenvNoCC.mkDerivation rec { 13 pname = "source-serif-pro"; 14 version = "3.001"; 15 16 src = fetchzip { 17 url = "https://github.com/adobe-fonts/source-serif/releases/download/${version}R/source-serif-pro-${version}R.zip"; 18 hash = "sha256-chXoaPOACtQ7wz/etElXuIJH/yvUsP03WlxeCfqWF/w="; 19 }; 20 21 installPhase = '' 22 runHook preInstall 23 24 install -Dm444 OTF/*.otf -t $out/share/fonts/opentype 25 install -Dm444 TTF/*.ttf -t $out/share/fonts/truetype 26 install -Dm444 VAR/*.otf -t $out/share/fonts/variable 27 28 runHook postInstall 29 ''; 30 31 meta = with lib; { 32 homepage = "https://adobe-fonts.github.io/source-serif/"; 33 description = "Typeface for setting text in many sizes, weights, and languages. Designed to complement Source Sans"; 34 license = licenses.ofl; 35 platforms = platforms.all; 36 maintainers = with maintainers; [ ttuegel ]; 37 }; 38}