diff --git a/pkgs/data/fonts/vegur/default.nix b/pkgs/data/fonts/vegur/default.nix new file mode 100644 index 000000000000..4bf28782a8a5 --- /dev/null +++ b/pkgs/data/fonts/vegur/default.nix @@ -0,0 +1,33 @@ +{ stdenv, rpmextract, fetchurl, unzip }: + +stdenv.mkDerivation rec { + version = "0.701"; + name = "vegur-font-${version}"; + + # Upstream doesn't version their URLs. + # http://dotcolon.net/font/vegur/ → http://dotcolon.net/DL/font/vegur.zip + src = fetchurl { + url = "http://download.opensuse.org/repositories/M17N:/fonts/SLE_12_SP3/src/dotcolon-vegur-fonts-0.701-1.4.src.rpm"; + sha256 = "0ra3fds3b352rpzn0015km539c3l2ik2lqd5x6fr65ss9fg2xn34"; + }; + + nativeBuildInputs = [ rpmextract unzip ]; + + unpackPhase = '' + rpmextract $src + unzip vegur.zip + ''; + + installPhase = '' + mkdir -p $out/share/fonts/Vegur + cp *.otf $out/share/fonts/Vegur + ''; + + meta = with stdenv.lib; { + homepage = http://dotcolon.net/font/vegur/; + description = "A humanist sans serif font."; + platforms = platforms.all; + maintainers = [ maintainers.samueldr ]; + license = licenses.cc0; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 81841abdddf8..4d539d5cb976 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15144,6 +15144,8 @@ with pkgs; vdrsymbols = callPackage ../data/fonts/vdrsymbols { }; + vegur = callPackage ../data/fonts/vegur { }; + vistafonts = callPackage ../data/fonts/vista-fonts { }; vistafonts-chs = callPackage ../data/fonts/vista-fonts-chs { };