Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 29 lines 861 B view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "source-serif"; 5 version = "4.005"; 6 7 src = fetchzip { 8 url = "https://github.com/adobe-fonts/source-serif/archive/refs/tags/${version}R.zip"; 9 hash = "sha256-djeRJWcKqirkHus52JSeZJXeB7yMTnUXpkPxyzgRC04="; 10 }; 11 12 installPhase = '' 13 runHook preInstall 14 15 install -Dm444 OTF/*.otf -t $out/share/fonts/opentype 16 install -Dm444 TTF/*.ttf -t $out/share/fonts/truetype 17 install -Dm444 VAR/*.otf -t $out/share/fonts/variable 18 19 runHook postInstall 20 ''; 21 22 meta = with lib; { 23 homepage = "https://adobe-fonts.github.io/source-serif/"; 24 description = "Typeface for setting text in many sizes, weights, and languages. Designed to complement Source Sans"; 25 license = licenses.ofl; 26 platforms = platforms.all; 27 maintainers = with maintainers; [ ttuegel ]; 28 }; 29}