Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenvNoCC, 4 fetchzip, 5}: 6 7stdenvNoCC.mkDerivation rec { 8 pname = "source-code-pro"; 9 version = "2.042"; 10 11 src = fetchzip { 12 url = "https://github.com/adobe-fonts/source-code-pro/releases/download/${version}R-u%2F1.062R-i%2F1.026R-vf/OTF-source-code-pro-${version}R-u_1.062R-i.zip"; 13 stripRoot = false; 14 hash = "sha256-+BnfmD+AjObSoVxPvFAqbnMD2j5qf2YmbXGQtXoaiy0="; 15 }; 16 17 installPhase = '' 18 runHook preInstall 19 20 install -Dm644 OTF/*.otf -t $out/share/fonts/opentype 21 22 runHook postInstall 23 ''; 24 25 meta = { 26 description = "Monospaced font family for user interface and coding environments"; 27 maintainers = with lib.maintainers; [ relrod ]; 28 platforms = with lib.platforms; all; 29 homepage = "https://adobe-fonts.github.io/source-code-pro/"; 30 license = lib.licenses.ofl; 31 }; 32}