about summary refs log tree commit diff
path: root/pkgs/data/fonts/stix-otf/default.nix
blob: f32d865c95c7d39e87c29323b9b3110b80409794 (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
29
30
{stdenv, fetchurl, unzip}:

stdenv.mkDerivation rec {
  name = "stix-otf-${version}";
  version = "1.1.1";

  src = fetchurl {
    url = "mirror://sourceforge/stixfonts/STIXv${version}-word.zip";
    sha256 = "1q35wbqn3nh78pdban9z37lh090c6p49q3d00zzxm0axxz66xy4q";
  };

  buildInputs = [unzip];

  phases = ["unpackPhase" "installPhase"];

  sourceRoot = "Fonts/STIX-Word";

  installPhase = ''
    mkdir -p $out/share/fonts/opentype
    cp *.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];
  };
}