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

29 lines
741 B
Nix
Raw Normal View History

2019-11-17 10:20:00 +01:00
{ stdenv, fetchFromGitHub }:
2017-02-20 23:55:08 +01:00
2017-08-10 21:43:49 +02:00
let
2019-11-17 10:20:00 +01:00
version = "2.0.2";
in fetchFromGitHub {
2017-08-10 21:43:49 +02:00
name = "stix-two-${version}";
2017-02-20 23:55:08 +01:00
2019-11-17 10:20:00 +01:00
owner = "stipub";
repo = "stixfonts";
rev = "v${version}";
2017-02-20 23:55:08 +01:00
2017-08-10 21:43:49 +02:00
postFetch = ''
2019-11-17 10:20:00 +01:00
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/opentype/ OTF/*.otf
install -m444 -Dt $out/share/fonts/woff/ WOFF/*.woff
install -m444 -Dt $out/share/fonts/woff2/ WOFF2/*.woff2
2017-02-20 23:55:08 +01:00
'';
2019-11-17 10:20:00 +01:00
sha256 = "1ah8s0cb67yv4ll8zfs01mdh9m5i2lbkrfbmkhi1xdid6pxsk32x";
2017-08-10 21:43:49 +02:00
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 ];
};
}