data/fonts: simpler cleanups

This commit is contained in:
Volth
2017-08-11 14:26:03 +00:00
parent 691da0cbb9
commit 31c344982f
95 changed files with 865 additions and 1088 deletions
+10 -14
View File
@@ -1,23 +1,19 @@
{ stdenv, fetchurl, unzip }:
{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
name = "stix-two-${version}";
let
version = "2.0.0";
in fetchzip {
name = "stix-two-${version}";
src = fetchurl {
url = "mirror://sourceforge/stixfonts/Current%20Release/STIXv${version}.zip";
sha256 = "0f6rcg0p2dhnks523nywgkjk56bjajz3gnwsrap932674xxjkb3g";
};
url = "mirror://sourceforge/stixfonts/Current%20Release/STIXv${version}.zip";
buildInputs = [ unzip ];
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/share/fonts/opentype
cp -v "Fonts/OTF/"*.otf $out/share/fonts/opentype
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
'';
sha256 = "19i30d2xjk52bjj7xva1hnlyh58yd5phas1njcc8ldcz87a1lhql";
meta = with stdenv.lib; {
homepage = http://www.stixfonts.org/;
description = "Fonts for Scientific and Technical Information eXchange";