nixpkgs/pkgs/data/fonts/unifont_upper/default.nix

30 lines
814 B
Nix
Raw Normal View History

2015-10-18 07:05:26 +02:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "unifont_upper-${version}";
2016-10-25 04:42:52 +02:00
version = "9.0.03";
2015-10-18 07:05:26 +02:00
ttf = fetchurl {
2016-10-25 04:42:52 +02:00
url = "http://unifoundry.com/pub/unifont-${version}/font-builds/${name}.ttf";
sha256 = "015v39y6nnyz4ld006349jzk9isyaqp4cnvmz005ylfnicl4zwhi";
2015-10-18 07:05:26 +02:00
};
phases = "installPhase";
installPhase =
''
mkdir -p $out/share/fonts/truetype
cp -v ${ttf} $out/share/fonts/truetype/unifont_upper.ttf
'';
meta = with stdenv.lib; {
description = "Unicode font for glyphs above the Unicode Basic Multilingual Plane";
homepage = http://unifoundry.com/unifont.html;
# Basically GPL2+ with font exception.
license = http://unifoundry.com/LICENSE.txt;
2016-07-04 19:34:21 +02:00
maintainers = [ maintainers.mathnerd314 maintainers.vrthra ];
2015-10-18 07:05:26 +02:00
platforms = platforms.all;
};
}