1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "source-code-pro";
5 version = "2.042";
6
7 src = fetchzip {
8 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";
9 stripRoot = false;
10 hash = "sha256-+BnfmD+AjObSoVxPvFAqbnMD2j5qf2YmbXGQtXoaiy0=";
11 };
12
13 installPhase = ''
14 runHook preInstall
15
16 install -Dm644 OTF/*.otf -t $out/share/fonts/opentype
17
18 runHook postInstall
19 '';
20
21 meta = {
22 description = "Monospaced font family for user interface and coding environments";
23 maintainers = with lib.maintainers; [ relrod ];
24 platforms = with lib.platforms; all;
25 homepage = "https://adobe-fonts.github.io/source-code-pro/";
26 license = lib.licenses.ofl;
27 };
28}