2015-01-11 14:07:51 +00:00
|
|
|
{ stdenv, fetchurl, mkfontscale, mkfontdir }:
|
2010-07-28 16:35:01 +01:00
|
|
|
|
2015-01-11 14:07:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "unifont-${version}";
|
2016-07-04 18:32:08 +01:00
|
|
|
version = "9.0.01";
|
2010-07-28 16:35:01 +01:00
|
|
|
|
|
|
|
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";
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
2010-07-28 16:35:01 +01:00
|
|
|
|
|
|
|
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";
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
2010-07-28 16:35:01 +01:00
|
|
|
|
2015-01-11 14:07:51 +00:00
|
|
|
buildInputs = [ mkfontscale mkfontdir ];
|
2010-07-28 16:35:01 +01:00
|
|
|
|
2015-01-11 14:07:51 +00:00
|
|
|
phases = "installPhase";
|
2010-07-28 16:35:01 +01:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/fonts $out/share/fonts/truetype
|
2015-01-11 14:07:51 +00:00
|
|
|
cp -v ${pcf} $out/share/fonts/unifont.pcf.gz
|
|
|
|
cp -v ${ttf} $out/share/fonts/truetype/unifont.ttf
|
2010-07-28 16:35:01 +01:00
|
|
|
cd $out/share/fonts
|
2015-01-11 14:07:51 +00:00
|
|
|
mkfontdir
|
2010-07-28 16:35:01 +01:00
|
|
|
mkfontscale
|
|
|
|
'';
|
2015-01-11 14:07:51 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Unicode font for Base Multilingual Plane";
|
2015-01-11 14:07:51 +00:00
|
|
|
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 ];
|
2015-01-11 14:07:51 +00:00
|
|
|
platforms = platforms.all;
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
2010-07-28 16:35:01 +01:00
|
|
|
}
|