2015-01-11 06:07:51 -08:00
|
|
|
{ stdenv, fetchurl, mkfontscale, mkfontdir }:
|
2010-07-28 08:35:01 -07:00
|
|
|
|
2015-01-11 06:07:51 -08:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "unifont-${version}";
|
2016-11-04 23:55:04 -07:00
|
|
|
version = "9.0.04";
|
2010-07-28 08:35:01 -07:00
|
|
|
|
|
|
|
ttf = fetchurl {
|
2016-11-04 23:55:04 -07:00
|
|
|
url = "mirror://gnu/unifont/${name}/${name}.ttf";
|
|
|
|
sha256 = "052waajjdry67jjl7vy984padyzdrkhf5gylgbnvj90q6d52j02z";
|
2008-03-02 10:39:33 -08:00
|
|
|
};
|
2010-07-28 08:35:01 -07:00
|
|
|
|
|
|
|
pcf = fetchurl {
|
2016-11-04 23:55:04 -07:00
|
|
|
url = "mirror://gnu/unifont/${name}/${name}.pcf.gz";
|
|
|
|
sha256 = "0736qmlzsf4xlipj4vzihafkigc3xjisxnwcqhl9dzkhxfjq9612";
|
2008-03-02 10:39:33 -08:00
|
|
|
};
|
2010-07-28 08:35:01 -07:00
|
|
|
|
2015-01-11 06:07:51 -08:00
|
|
|
buildInputs = [ mkfontscale mkfontdir ];
|
2010-07-28 08:35:01 -07:00
|
|
|
|
2015-01-11 06:07:51 -08:00
|
|
|
phases = "installPhase";
|
2010-07-28 08:35:01 -07:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-01-18 12:16:00 -08:00
|
|
|
mkdir -p $out/share/fonts $out/share/fonts/truetype
|
2015-01-11 06:07:51 -08:00
|
|
|
cp -v ${pcf} $out/share/fonts/unifont.pcf.gz
|
|
|
|
cp -v ${ttf} $out/share/fonts/truetype/unifont.ttf
|
2010-07-28 08:35:01 -07:00
|
|
|
cd $out/share/fonts
|
2015-01-11 06:07:51 -08:00
|
|
|
mkfontdir
|
2010-07-28 08:35:01 -07:00
|
|
|
mkfontscale
|
|
|
|
'';
|
2015-01-11 06:07:51 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 02:49:53 -07:00
|
|
|
description = "Unicode font for Base Multilingual Plane";
|
2015-01-11 06:07:51 -08:00
|
|
|
homepage = http://unifoundry.com/unifont.html;
|
|
|
|
|
|
|
|
# Basically GPL2+ with font exception.
|
|
|
|
license = http://unifoundry.com/LICENSE.txt;
|
2016-07-04 10:32:08 -07:00
|
|
|
maintainers = [ maintainers.rycee maintainers.vrthra ];
|
2015-01-11 06:07:51 -08:00
|
|
|
platforms = platforms.all;
|
2008-03-02 10:39:33 -08:00
|
|
|
};
|
2010-07-28 08:35:01 -07:00
|
|
|
}
|