2019-11-17 01:20:00 -08:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2017-02-20 14:55:08 -08:00
|
|
|
|
2017-08-10 12:43:49 -07:00
|
|
|
let
|
2019-11-17 01:20:00 -08:00
|
|
|
version = "2.0.2";
|
|
|
|
in fetchFromGitHub {
|
2017-08-10 12:43:49 -07:00
|
|
|
name = "stix-two-${version}";
|
2017-02-20 14:55:08 -08:00
|
|
|
|
2019-11-17 01:20:00 -08:00
|
|
|
owner = "stipub";
|
|
|
|
repo = "stixfonts";
|
|
|
|
rev = "v${version}";
|
2017-02-20 14:55:08 -08:00
|
|
|
|
2017-08-10 12:43:49 -07:00
|
|
|
postFetch = ''
|
2019-11-17 01:20:00 -08:00
|
|
|
tar xf $downloadedFile --strip=1
|
|
|
|
install -m444 -Dt $out/share/fonts/opentype/ OTF/*.otf
|
|
|
|
install -m444 -Dt $out/share/fonts/woff/ WOFF/*.woff
|
|
|
|
install -m444 -Dt $out/share/fonts/woff2/ WOFF2/*.woff2
|
2017-02-20 14:55:08 -08:00
|
|
|
'';
|
|
|
|
|
2019-11-17 01:20:00 -08:00
|
|
|
sha256 = "1ah8s0cb67yv4ll8zfs01mdh9m5i2lbkrfbmkhi1xdid6pxsk32x";
|
2017-08-10 12:43:49 -07:00
|
|
|
|
2017-02-20 14:55:08 -08:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.stixfonts.org/";
|
2017-02-20 14:55:08 -08:00
|
|
|
description = "Fonts for Scientific and Technical Information eXchange";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
};
|
|
|
|
}
|