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

26 lines
729 B
Nix
Raw Normal View History

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