nixpkgs/pkgs/data/fonts/stix-two/default.nix
2021-05-06 00:23:40 +02:00

26 lines
728 B
Nix

{ lib, fetchzip }:
let
version = "2.13";
in
fetchzip {
name = "stix-two-${version}";
url = "https://github.com/stipub/stixfonts/raw/v${version}/zipfiles/STIX${builtins.replaceStrings [ "." ] [ "_" ] version}-all.zip";
sha256 = "sha256-cBtZe/oq4bQCscSAhJ4YuTSghDleD9O/+3MHOJyI50o=";
postFetch = ''
mkdir -p $out/share/fonts/
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
'';
meta = with lib; {
homepage = "https://www.stixfonts.org/";
description = "Fonts for Scientific and Technical Information eXchange";
license = licenses.ofl;
platforms = platforms.all;
maintainers = [ maintainers.rycee ];
};
}