mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
30 lines
814 B
Nix
30 lines
814 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "unifont_upper-${version}";
|
|
version = "9.0.03";
|
|
|
|
ttf = fetchurl {
|
|
url = "http://unifoundry.com/pub/unifont-${version}/font-builds/${name}.ttf";
|
|
sha256 = "015v39y6nnyz4ld006349jzk9isyaqp4cnvmz005ylfnicl4zwhi";
|
|
};
|
|
|
|
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;
|
|
maintainers = [ maintainers.mathnerd314 maintainers.vrthra ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|