1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

stix-two: 2.0.0 -> 2.0.2

This commit is contained in:
Mario Rodas 2019-11-17 04:20:00 -05:00 committed by Jon
parent 542af6df87
commit daa1b6df95

View file

@ -1,18 +1,22 @@
{ stdenv, fetchzip }:
{ stdenv, fetchFromGitHub }:
let
version = "2.0.0";
in fetchzip {
version = "2.0.2";
in fetchFromGitHub {
name = "stix-two-${version}";
url = "https://github.com/stipub/stixfonts/archive/${version}.zip";
owner = "stipub";
repo = "stixfonts";
rev = "v${version}";
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile '*/OTF/*.otf' -d $out/share/fonts/opentype
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
'';
sha256 = "19i30d2xjk52bjj7xva1hnlyh58yd5phas1njcc8ldcz87a1lhql";
sha256 = "1ah8s0cb67yv4ll8zfs01mdh9m5i2lbkrfbmkhi1xdid6pxsk32x";
meta = with stdenv.lib; {
homepage = http://www.stixfonts.org/;