2010-07-28 15:35:01 +00:00
|
|
|
{ stdenv, fetchurl, mkfontscale, mkfontdir, bdftopcf, fontutil }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
ttf = fetchurl {
|
|
|
|
url = http://unifoundry.com/unifont-5.1.20080907.ttf.gz;
|
|
|
|
sha256 = "03ssxsfhnayarzx15mn6khry2kgdxhkkc1bqzgr0c85ab5xm9jxw";
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
2010-07-28 15:35:01 +00:00
|
|
|
|
|
|
|
pcf = fetchurl {
|
|
|
|
url = http://unifoundry.com/unifont-5.1.20080820.pcf.gz;
|
|
|
|
sha256 = "0qwsgaplb2a79w14rrvazby3kwx7vyk08x70n0ih5dr91x3rqaqj";
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
2010-07-28 15:35:01 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "unifont-5.1-20080907";
|
|
|
|
|
|
|
|
buildInputs = [ mkfontscale mkfontdir bdftopcf fontutil ];
|
|
|
|
|
|
|
|
unpackPhase = "true";
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/fonts $out/share/fonts/truetype
|
2010-07-28 15:35:01 +00:00
|
|
|
cp ${pcf} $out/share/fonts/unifont.pcf.gz
|
|
|
|
gunzip < ${ttf} > $out/share/fonts/truetype/unifont.ttf
|
|
|
|
cd $out/share/fonts
|
|
|
|
mkfontdir
|
|
|
|
mkfontscale
|
|
|
|
'';
|
|
|
|
|
2008-03-02 18:39:33 +00:00
|
|
|
meta = {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Unicode font for Base Multilingual Plane";
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
2010-07-28 15:35:01 +00:00
|
|
|
}
|