nixpkgs/pkgs/data/fonts/stix-two/default.nix

26 lines
728 B
Nix
Raw Normal View History

2020-12-19 04:20:00 +00:00
{ lib, fetchzip }:
2017-08-10 19:43:49 +00:00
let
2021-05-05 12:16:11 +00:00
version = "2.13";
2020-12-19 04:20:00 +00:00
in
fetchzip {
2017-08-10 19:43:49 +00: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 12:16:11 +00:00
sha256 = "sha256-cBtZe/oq4bQCscSAhJ4YuTSghDleD9O/+3MHOJyI50o=";
2017-02-20 22:55:08 +00:00
2017-08-10 19:43:49 +00: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 ];
};
}