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
+9 -9
View File
@@ -1,23 +1,23 @@
{ stdenv, fetchzip }:
{ lib, fetchFromGitHub }:
let
version = "20110526";
in fetchzip {
in fetchFromGitHub {
name = "orbitron-${version}";
url = https://github.com/theleagueof/orbitron/archive/13e6a52.zip;
owner = "theleagueof";
repo = "orbitron";
rev = "13e6a52";
postFetch = ''
otfdir=$out/share/fonts/opentype/orbitron
ttfdir=$out/share/fonts/ttf/orbitron
mkdir -p $otfdir $ttfdir
unzip -j $downloadedFile \*/Orbitron\*.otf -d $otfdir
unzip -j $downloadedFile \*/Orbitron\*.ttf -d $ttfdir
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/opentype/orbitron *.otf
install -m444 -Dt $out/share/fonts/ttf/orbitron *.ttf
'';
sha256 = "1y9yzvpqs2v3ssnqk2iiglrh8amgsscnk8vmfgnqgqi9f4dhdvnv";
meta = with stdenv.lib; {
meta = with lib; {
homepage = https://www.theleagueofmoveabletype.com/orbitron;
downloadPage = "https://www.theleagueofmoveabletype.com/orbitron/download";
description = ''