nixpkgs/pkgs/data/fonts/stix-otf/default.nix

25 lines
604 B
Nix
Raw Normal View History

2017-08-10 21:43:49 +02:00
{stdenv, fetchzip}:
2014-09-11 20:05:01 +02:00
2017-08-10 21:43:49 +02:00
let
2014-09-11 20:05:01 +02:00
version = "1.1.1";
2017-08-10 21:43:49 +02:00
in fetchzip rec {
name = "stix-otf-${version}";
2014-09-11 20:05:01 +02:00
2017-08-10 21:43:49 +02:00
url = "mirror://sourceforge/stixfonts/STIXv${version}-word.zip";
2014-09-11 20:05:01 +02:00
2017-08-10 21:43:49 +02:00
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
2014-09-11 20:05:01 +02:00
'';
2017-08-10 21:43:49 +02:00
sha256 = "04d4qxq3i9fyapsmxk6d9v1xirjam8c74fyxs6n24d3gf2945zmw";
2014-09-11 20:05:01 +02:00
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];
};
}