2020-12-25 13:55:36 +00:00
|
|
|
{ lib, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
2021-01-17 00:15:33 +00:00
|
|
|
version = "2.11";
|
2020-12-25 13:55:36 +00:00
|
|
|
in
|
|
|
|
fetchzip {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "stix-two-${version}";
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
url = "https://github.com/stipub/stixfonts/raw/v${version}/zipfiles/STIX${builtins.replaceStrings [ "." ] [ "_" ] version}-all.zip";
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
sha256 = "19ndavx5k85vm6wvq9603kynpgbfddbjiihivffvnbrxwf13h34n";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
2020-12-25 13:55:36 +00:00
|
|
|
mkdir -p $out/share/fonts/
|
|
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.stixfonts.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fonts for Scientific and Technical Information eXchange";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
};
|
|
|
|
}
|