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

25 lines
612 B
Nix
Raw Normal View History

{ lib, fetchzip }:
2014-09-11 18:05:01 +00:00
2017-08-10 19:43:49 +00:00
let
2014-09-11 18:05:01 +00:00
version = "1.1.1";
2019-08-13 21:52:01 +00:00
in fetchzip {
2017-08-10 19:43:49 +00:00
name = "stix-otf-${version}";
2014-09-11 18:05:01 +00:00
url = "http://ftp.fi.muni.cz/pub/linux/gentoo/distfiles/STIXv${version}-word.zip";
2014-09-11 18:05:01 +00:00
2017-08-10 19:43:49 +00:00
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
2014-09-11 18:05:01 +00:00
'';
2017-08-10 19:43:49 +00:00
sha256 = "04d4qxq3i9fyapsmxk6d9v1xirjam8c74fyxs6n24d3gf2945zmw";
meta = with lib; {
homepage = "http://www.stixfonts.org/";
2014-09-11 18:05:01 +00:00
description = "Fonts for Scientific and Technical Information eXchange";
license = licenses.ofl;
platforms = platforms.all;
maintainers = [maintainers.rycee];
};
}