2019-11-17 09:20:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2017-02-20 22:55:08 +00:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
let
|
2019-11-17 09:20:00 +00:00
|
|
|
version = "2.0.2";
|
|
|
|
in fetchFromGitHub {
|
2017-08-10 20:43:49 +01:00
|
|
|
name = "stix-two-${version}";
|
2017-02-20 22:55:08 +00:00
|
|
|
|
2019-11-17 09:20:00 +00:00
|
|
|
owner = "stipub";
|
|
|
|
repo = "stixfonts";
|
|
|
|
rev = "v${version}";
|
2017-02-20 22:55:08 +00:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
postFetch = ''
|
2019-11-17 09:20:00 +00: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 22:55:08 +00:00
|
|
|
'';
|
|
|
|
|
2019-11-17 09:20:00 +00:00
|
|
|
sha256 = "1ah8s0cb67yv4ll8zfs01mdh9m5i2lbkrfbmkhi1xdid6pxsk32x";
|
2017-08-10 20:43:49 +01:00
|
|
|
|
2017-02-20 22:55:08 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.stixfonts.org/";
|
2017-02-20 22:55:08 +00:00
|
|
|
description = "Fonts for Scientific and Technical Information eXchange";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
};
|
|
|
|
}
|