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,16 +1,18 @@
{ stdenv, fetchzip }:
{ lib, fetchFromGitHub }:
let
version = "2016-08-30";
in fetchzip {
in fetchFromGitHub {
name = "raleway-${version}";
url = https://github.com/impallari/Raleway/archive/fa27f47b087fc093c6ae11cfdeb3999ac602929a.zip;
owner = "impallari";
repo = "Raleway";
rev = "fa27f47b087fc093c6ae11cfdeb3999ac602929a";
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*-Original.otf -d $out/share/fonts/opentype
unzip -j $downloadedFile \*.txt \*.md -d $out
tar xf $downloadedFile --strip=1
find . -name "*-Original.otf" -exec install -Dt $out/share/fonts/opentype {} \;
cp *.txt *.md -d $out
'';
sha256 = "16jr7drqg2wib2q48ajlsa7rh1jxjibl1wd4rjndi49vfl463j60";
@@ -33,8 +35,8 @@ in fetchzip {
'';
homepage = https://github.com/impallari/Raleway;
license = stdenv.lib.licenses.ofl;
license = lib.licenses.ofl;
maintainers = with stdenv.lib.maintainers; [ Profpatsch ];
maintainers = with lib.maintainers; [ Profpatsch ];
};
}