2008-03-02 18:39:33 +00:00
|
|
|
args: with args; with debPackage;
|
|
|
|
debBuild ({
|
|
|
|
src = fetchurl {
|
2009-05-09 17:49:16 +01:00
|
|
|
url = mirror://debian/pool/main/u/unifont/unifont_5.1.20080914.orig.tar.gz;
|
|
|
|
sha256 = "1p8f3dkg0zy9f5hwn1q728hps258ll84xg9a7xqbhj2csvnsyajd";
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
|
|
|
patch = fetchurl {
|
2009-05-09 17:49:16 +01:00
|
|
|
url = mirror://debian/pool/main/u/unifont/unifont_5.1.20080914-1.diff.gz;
|
|
|
|
sha256 = "0faicwbjlgy78zrc94ffg52f71msll8kxc43bks40z8qb02nr7qx";
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
2009-05-09 17:49:16 +01:00
|
|
|
name = "unifont-5.1-20080914";
|
2008-03-02 18:39:33 +00:00
|
|
|
buildInputs = [mkfontscale mkfontdir bdftopcf fontutil perl];
|
|
|
|
meta = {
|
|
|
|
description = "Unicode font for Base Multilingual Plane.";
|
|
|
|
};
|
2009-05-09 17:49:16 +01:00
|
|
|
#extraReplacements = ''sed -e s@/usr/bin/perl@${perl}/bin/perl@ -i hex2bdf.unsplit'';
|
2008-03-02 18:39:33 +00:00
|
|
|
omitConfigure = true;
|
|
|
|
Install = ''
|
2009-05-09 17:49:16 +01:00
|
|
|
ensureDir $out/share/fonts $out/share/fonts/truetype
|
|
|
|
cd font/precompiled
|
|
|
|
cp unifont.pcf.gz $out/share/fonts
|
|
|
|
cp unifont.ttf $out/share/fonts/truetype
|
2008-03-02 18:39:33 +00:00
|
|
|
cd $out/share/fonts
|
|
|
|
mkfontdir
|
|
|
|
mkfontscale
|
|
|
|
'';
|
|
|
|
extraInstallDeps = ["defEnsureDir"];
|
|
|
|
} // args)
|