parent
0d42077f34
commit
42cb24cec2
@ -1,25 +1,22 @@
|
|||||||
{ stdenv, fetchFromGitHub }:
|
{ lib, fetchzip }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.0.2";
|
version = "2.10";
|
||||||
in fetchFromGitHub {
|
in
|
||||||
|
fetchzip {
|
||||||
name = "stix-two-${version}";
|
name = "stix-two-${version}";
|
||||||
|
|
||||||
owner = "stipub";
|
url = "https://github.com/stipub/stixfonts/raw/v${version}/zipfiles/STIX${builtins.replaceStrings [ "." ] [ "_" ] version}-all.zip";
|
||||||
repo = "stixfonts";
|
|
||||||
rev = "v${version}";
|
sha256 = "1xvh5c5asbasfa333mizimvdp209g0lppbwv2p0cg3ixfpxgq4dl";
|
||||||
|
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
tar xf $downloadedFile --strip=1
|
mkdir -p $out/share/fonts/
|
||||||
install -m444 -Dt $out/share/fonts/opentype/ OTF/*.otf
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
||||||
install -m444 -Dt $out/share/fonts/woff/ WOFF/*.woff
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||||
install -m444 -Dt $out/share/fonts/woff2/ WOFF2/*.woff2
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sha256 = "1ah8s0cb67yv4ll8zfs01mdh9m5i2lbkrfbmkhi1xdid6pxsk32x";
|
meta = with lib; {
|
||||||
|
homepage = "https://www.stixfonts.org/";
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = "http://www.stixfonts.org/";
|
|
||||||
description = "Fonts for Scientific and Technical Information eXchange";
|
description = "Fonts for Scientific and Technical Information eXchange";
|
||||||
license = licenses.ofl;
|
license = licenses.ofl;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
Loading…
Reference in New Issue
Block a user