1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/data/fonts/stix-two/default.nix

26 lines
729 B
Nix
Raw Normal View History

2020-12-19 04:20:00 +00:00
{ lib, fetchzip }:
2017-08-10 20:43:49 +01:00
let
2020-12-19 04:20:00 +00:00
version = "2.10";
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";
sha256 = "1xvh5c5asbasfa333mizimvdp209g0lppbwv2p0cg3ixfpxgq4dl";
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 ];
};
}