2020-12-19 05:20:00 +01:00
|
|
|
{ lib, fetchzip }:
|
2017-08-10 21:43:49 +02:00
|
|
|
let
|
2021-05-05 14:16:11 +02:00
|
|
|
version = "2.13";
|
2020-12-19 05:20:00 +01:00
|
|
|
in
|
|
|
|
fetchzip {
|
2017-08-10 21:43:49 +02:00
|
|
|
name = "stix-two-${version}";
|
2017-02-20 23:55:08 +01:00
|
|
|
|
2020-12-19 05:20:00 +01:00
|
|
|
url = "https://github.com/stipub/stixfonts/raw/v${version}/zipfiles/STIX${builtins.replaceStrings [ "." ] [ "_" ] version}-all.zip";
|
|
|
|
|
2021-05-05 14:16:11 +02:00
|
|
|
sha256 = "sha256-cBtZe/oq4bQCscSAhJ4YuTSghDleD9O/+3MHOJyI50o=";
|
2017-02-20 23:55:08 +01:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
postFetch = ''
|
2020-12-19 05:20:00 +01: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 23:55:08 +01:00
|
|
|
'';
|
|
|
|
|
2020-12-19 05:20:00 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.stixfonts.org/";
|
2017-02-20 23:55:08 +01:00
|
|
|
description = "Fonts for Scientific and Technical Information eXchange";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
};
|
|
|
|
}
|