data/fonts: cleanup

* make font derivations fixed-output where applicable
 * fix dead links
 * `stdenv.lib` -> `lib` where `stdenv` is not involved
 * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
This commit is contained in:
volth
2019-05-13 06:03:31 +00:00
parent 1df1834dd1
commit c9eb44eab3
177 changed files with 789 additions and 929 deletions
+10 -8
View File
@@ -1,19 +1,21 @@
{ stdenv, fetchzip }:
{ lib, fetchFromGitHub }:
fetchzip rec {
fetchFromGitHub rec {
name = "libre-bodoni-2.000";
url = https://github.com/impallari/Libre-Bodoni/archive/995a40e8d6b95411d660cbc5bb3f726ffd080c7d.zip;
owner = "impallari";
repo = "Libre-Bodoni";
rev = "995a40e8d6b95411d660cbc5bb3f726ffd080c7d";
postFetch = ''
mkdir -p $out/share/{doc,fonts}
unzip -j $downloadedFile \*/v2000\ -\ initial\ glyphs\ migration/OTF/\*.otf -d $out/share/fonts/opentype
unzip -j $downloadedFile \*README.md \*FONTLOG.txt -d "$out/share/doc/${name}"
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/opentype */v2000\ -\ initial\ glyphs\ migration/OTF/*.otf
install -m444 -Dt $out/share/doc/${name} README.md FONTLOG.txt
'';
sha256 = "0pnb1xydpvcl9mkz095f566kz7yj061wbf40rwrbwmk706f6bsiw";
sha256 = "0my0i5a7f0d27m6dcdirjmlcnswqqfp8gl3ccxa5f2wkn3qlzkvz";
meta = with stdenv.lib; {
meta = with lib; {
description = "Bodoni fonts adapted for today's web requirements";
longDescription = ''
The Libre Bodoni fonts are based on the 19th century Morris Fuller