2017-08-10 19:43:49 +00:00
|
|
|
{ stdenv, fetchzip }:
|
2017-02-20 22:55:08 +00:00
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
let
|
2017-02-20 22:55:08 +00:00
|
|
|
version = "2.0.0";
|
2017-08-10 19:43:49 +00:00
|
|
|
in fetchzip {
|
|
|
|
name = "stix-two-${version}";
|
2017-02-20 22:55:08 +00:00
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
url = "mirror://sourceforge/stixfonts/Current%20Release/STIXv${version}.zip";
|
2017-02-20 22:55:08 +00:00
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
2017-02-20 22:55:08 +00:00
|
|
|
'';
|
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
sha256 = "19i30d2xjk52bjj7xva1hnlyh58yd5phas1njcc8ldcz87a1lhql";
|
|
|
|
|
2017-02-20 22:55:08 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|