1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 02:46:28 +00:00
nixpkgs/pkgs/data/fonts/unifont/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, mkfontscale, mkfontdir }:
stdenv.mkDerivation rec {
name = "unifont-${version}";
2016-07-04 18:32:08 +01:00
version = "9.0.01";
ttf = fetchurl {
2015-07-11 07:35:15 +01:00
url = "http://fossies.org/linux/unifont/font/precompiled/${name}.ttf";
2016-07-04 18:32:08 +01:00
sha256 = "0n2vdzrp86bjxfyqgmryrqckmjiiz4jvsfz9amgg3dv2p42y0dhd";
};
pcf = fetchurl {
2015-07-11 07:35:15 +01:00
url = "http://fossies.org/linux/unifont/font/precompiled/${name}.pcf.gz";
2016-07-04 18:32:08 +01:00
sha256 = "1n3zff46pk6s2x5y7h76aq7h9wfq2acv77gpmxkhz5iwvbpxgb4z";
};
buildInputs = [ mkfontscale mkfontdir ];
phases = "installPhase";
installPhase =
''
mkdir -p $out/share/fonts $out/share/fonts/truetype
cp -v ${pcf} $out/share/fonts/unifont.pcf.gz
cp -v ${ttf} $out/share/fonts/truetype/unifont.ttf
cd $out/share/fonts
mkfontdir
mkfontscale
'';
meta = with stdenv.lib; {
description = "Unicode font for Base Multilingual Plane";
homepage = http://unifoundry.com/unifont.html;
# Basically GPL2+ with font exception.
license = http://unifoundry.com/LICENSE.txt;
2016-07-04 18:32:08 +01:00
maintainers = [ maintainers.rycee maintainers.vrthra ];
platforms = platforms.all;
};
}