2020-12-19 04:20:00 +00:00
|
|
|
{ lib, fetchzip }:
|
2017-08-10 20:43:49 +01:00
|
|
|
let
|
2021-05-05 13:16:11 +01:00
|
|
|
version = "2.13";
|
2020-12-19 04:20:00 +00:00
|
|
|
in
|
|
|
|
fetchzip {
|
2017-08-10 20:43:49 +01:00
|
|
|
name = "stix-two-${version}";
|
2017-02-20 22:55:08 +00:00
|
|
|
|
2020-12-19 04:20:00 +00:00
|
|
|
url = "https://github.com/stipub/stixfonts/raw/v${version}/zipfiles/STIX${builtins.replaceStrings [ "." ] [ "_" ] version}-all.zip";
|
|
|
|
|
2021-05-05 13:16:11 +01:00
|
|
|
sha256 = "sha256-cBtZe/oq4bQCscSAhJ4YuTSghDleD9O/+3MHOJyI50o=";
|
2017-02-20 22:55:08 +00:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
postFetch = ''
|
2020-12-19 04:20:00 +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
|
2017-02-20 22:55:08 +00:00
|
|
|
'';
|
|
|
|
|
2020-12-19 04:20:00 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://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 ];
|
|
|
|
};
|
|
|
|
}
|