summary refs log tree commit diff
path: root/pkgs/data/fonts/stix-two/default.nix
blob: 1d5ed37767c3db00a6aee665a42fd62d1929436c (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.0.0";
in fetchzip {
  name = "stix-two-${version}";

  url = "https://github.com/stipub/stixfonts/archive/${version}.zip";

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

  sha256 = "19i30d2xjk52bjj7xva1hnlyh58yd5phas1njcc8ldcz87a1lhql";

  meta = with stdenv.lib; {
    homepage = http://www.stixfonts.org/;
    description = "Fonts for Scientific and Technical Information eXchange";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = [ maintainers.rycee ];
  };
}