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

25 lines
610 B
Nix
Raw Normal View History

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