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
+11 -15
View File
@@ -1,26 +1,22 @@
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
{ lib, fetchFromGitHub }:
let
pname = "inriafonts";
version = "1.200";
in fetchFromGitHub rec {
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "BlackFoundry";
repo = "InriaFonts";
rev = "v${version}";
sha256 = "06775y99lyh6hj5hzvrx56iybdck8a8xfqkipqd5c4cldg0a9hh8";
};
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp fonts/*/TTF/*.ttf $out/share/fonts/truetype
mkdir -p $out/share/fonts/opentype
cp fonts/*/OTF/*.otf $out/share/fonts/opentype
'';
postFetch = ''
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/truetype fonts/*/TTF/*.ttf
install -m444 -Dt $out/share/fonts/opentype fonts/*/OTF/*.otf
'';
sha256 = "0wrwcyycyzvgvgnlmwi1ncdvwb8f6bbclynd1105rsyxgrz5dd70";
meta = with stdenv.lib; {
meta = with lib; {
homepage = https://black-foundry.com/work/inria;
description = "Inria Sans and Inria Serif";
longDescription = ''
@@ -32,7 +28,7 @@ installPhase = ''
typeface with a unapologetically contemporary design as the
Sans-serif part and a more rational axis and drawing for the
serif. Both members comes in 3 weights with matching italics.
'';
'';
license = licenses.ofl;
maintainers = with maintainers; [ leenaars ];
platforms = platforms.all;