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 -16
View File
@@ -1,25 +1,19 @@
{stdenv, fetchurl, unzip}:
{stdenv, fetchzip}:
stdenv.mkDerivation rec {
name = "stix-otf-${version}";
let
version = "1.1.1";
in fetchzip rec {
name = "stix-otf-${version}";
src = fetchurl {
url = "mirror://sourceforge/stixfonts/STIXv${version}-word.zip";
sha256 = "1q35wbqn3nh78pdban9z37lh090c6p49q3d00zzxm0axxz66xy4q";
};
url = "mirror://sourceforge/stixfonts/STIXv${version}-word.zip";
buildInputs = [unzip];
phases = ["unpackPhase" "installPhase"];
sourceRoot = "Fonts/STIX-Word";
installPhase = ''
mkdir -p $out/share/fonts/opentype
cp *.otf $out/share/fonts/opentype
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
'';
sha256 = "04d4qxq3i9fyapsmxk6d9v1xirjam8c74fyxs6n24d3gf2945zmw";
meta = with stdenv.lib; {
homepage = http://www.stixfonts.org/;
description = "Fonts for Scientific and Technical Information eXchange";