summary refs log tree commit diff
path: root/pkgs/data/fonts/stix-two/default.nix
blob: d4ec083a0708377cc61b063dcfb766e2fea4b362 (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
25
26
27
28
{ stdenv, fetchurl, unzip }:

stdenv.mkDerivation rec {
  name = "stix-two-${version}";
  version = "2.0.0";

  src = fetchurl {
    url = "mirror://sourceforge/stixfonts/Current%20Release/STIXv${version}.zip";
    sha256 = "0f6rcg0p2dhnks523nywgkjk56bjajz3gnwsrap932674xxjkb3g";
  };

  buildInputs = [ unzip ];

  phases = [ "unpackPhase" "installPhase" ];

  installPhase = ''
    mkdir -p $out/share/fonts/opentype
    cp -v "Fonts/OTF/"*.otf $out/share/fonts/opentype
  '';

  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 ];
  };
}