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:
@@ -1,19 +1,21 @@
|
||||
{ stdenv, fetchzip }:
|
||||
{ lib, fetchFromGitHub }:
|
||||
|
||||
fetchzip rec {
|
||||
fetchFromGitHub rec {
|
||||
name = "libre-baskerville-1.000";
|
||||
|
||||
url = https://github.com/impallari/Libre-Baskerville/archive/2fba7c8e0a8f53f86efd3d81bc4c63674b0c613f.zip;
|
||||
owner = "impallari";
|
||||
repo = "Libre-Baskerville";
|
||||
rev = "2fba7c8e0a8f53f86efd3d81bc4c63674b0c613f";
|
||||
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/{doc,fonts}
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -n -j $downloadedFile \*README.md \*FONTLOG.txt -d "$out/share/doc/${name}"
|
||||
tar xf $downloadedFile --strip=1
|
||||
install -m444 -Dt $out/share/fonts/truetype *.ttf
|
||||
install -m444 -Dt $out/share/doc/${name} README.md FONTLOG.txt
|
||||
'';
|
||||
|
||||
sha256 = "0arlq89b3vmpw3n4wbllsdvqblhz6p09dm19z1cndicmcgk26w2a";
|
||||
sha256 = "1kpji85d1mgwq8b4fh1isznrhsrv32la3wf058rwjmhx5a3l7yaj";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A webfont family optimized for body text";
|
||||
longDescription = ''
|
||||
Libre Baskerville is a webfont family optimized for body text. It's Based
|
||||
|
||||
Reference in New Issue
Block a user