1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 16:46:09 +00:00
nixpkgs/pkgs/data/fonts/vegur/default.nix

27 lines
801 B
Nix
Raw Normal View History

{ lib, buildPackages, fetchzip }:
2018-08-17 01:18:39 +01:00
let
2018-08-17 01:18:39 +01:00
version = "0.701";
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
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
postFetch = ''
${buildPackages.rpmextract}/bin/rpmextract $downloadedFile
2018-08-17 01:18:39 +01:00
unzip vegur.zip
install -m444 -Dt $out/share/fonts/Vegur *.otf
2018-08-17 01:18:39 +01:00
'';
sha256 = "0iisi2scq72lyj7pc1f36fhfjnm676n5byl4zaavhbxpdrbc6d1v";
2018-08-17 01:18:39 +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;
};
}