summary refs log tree commit diff
path: root/pkgs/data/fonts/source-code-pro/default.nix
blob: 6c3b90353065291fd665cc11b0bdcfec84f1353b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchzip }:

let
  version = "2.030";
in fetchzip {
  name = "source-code-pro-${version}";

  url = https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip;

  postFetch = ''
    mkdir -p $out/share/fonts
    unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
  '';

  sha256 = "0d8qwzjgnz264wlm4qim048z3236z4hbblvc6yplw13f6b65j6fv";

  meta = {
    description = "A set of monospaced OpenType fonts designed for coding environments";
    maintainers = with stdenv.lib.maintainers; [ relrod ];
    platforms = with stdenv.lib.platforms; all;
    homepage = https://adobe-fonts.github.io/source-code-pro/;
    license = stdenv.lib.licenses.ofl;
  };
}