2019-05-13 02:55:32 +01:00
|
|
|
{ lib, buildPackages, fetchzip }:
|
2018-08-17 01:18:39 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
let
|
2018-08-17 01:18:39 +01:00
|
|
|
version = "0.701";
|
2019-05-13 02:55:32 +01:00
|
|
|
in fetchzip {
|
2018-08-17 01:18:39 +01:00
|
|
|
name = "vegur-font-${version}";
|
|
|
|
|
|
|
|
# Upstream doesn't version their URLs.
|
|
|
|
# http://dotcolon.net/font/vegur/ → http://dotcolon.net/DL/font/vegur.zip
|
2019-05-13 02:55:32 +01:00
|
|
|
url = "http://download.opensuse.org/repositories/M17N:/fonts/SLE_12_SP3/src/dotcolon-vegur-fonts-0.701-1.4.src.rpm";
|
2018-08-17 01:18:39 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
postFetch = ''
|
|
|
|
${buildPackages.rpmextract}/bin/rpmextract $downloadedFile
|
2018-08-17 01:18:39 +01:00
|
|
|
unzip vegur.zip
|
2019-05-13 02:55:32 +01:00
|
|
|
install -m444 -Dt $out/share/fonts/Vegur *.otf
|
2018-08-17 01:18:39 +01:00
|
|
|
'';
|
2019-05-13 02:55:32 +01:00
|
|
|
sha256 = "0iisi2scq72lyj7pc1f36fhfjnm676n5byl4zaavhbxpdrbc6d1v";
|
2018-08-17 01:18:39 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2018-08-17 01:18:39 +01:00
|
|
|
homepage = http://dotcolon.net/font/vegur/;
|
|
|
|
description = "A humanist sans serif font.";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.samueldr ];
|
|
|
|
license = licenses.cc0;
|
|
|
|
};
|
|
|
|
}
|