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

25 lines
614 B
Nix
Raw Normal View History

2017-08-10 21:43:49 +02:00
{ stdenv, fetchzip }:
2017-02-20 23:55:08 +01:00
2017-08-10 21:43:49 +02:00
let
2017-02-20 23:55:08 +01:00
version = "2.0.0";
2017-08-10 21:43:49 +02:00
in fetchzip {
name = "stix-two-${version}";
2017-02-20 23:55:08 +01:00
url = "https://github.com/stipub/stixfonts/archive/${version}.zip";
2017-02-20 23:55:08 +01:00
2017-08-10 21:43:49 +02:00
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile '*/OTF/*.otf' -d $out/share/fonts/opentype
2017-02-20 23:55:08 +01:00
'';
2017-08-10 21:43:49 +02:00
sha256 = "19i30d2xjk52bjj7xva1hnlyh58yd5phas1njcc8ldcz87a1lhql";
2017-02-20 23:55:08 +01:00
meta = with stdenv.lib; {
homepage = http://www.stixfonts.org/;
description = "Fonts for Scientific and Technical Information eXchange";
license = licenses.ofl;
platforms = platforms.all;
maintainers = [ maintainers.rycee ];
};
}