2015-01-11 15:07:51 +01:00
|
|
|
{ stdenv, fetchurl, mkfontscale, mkfontdir }:
|
2010-07-28 17:35:01 +02:00
|
|
|
|
2015-01-11 15:07:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "unifont-${version}";
|
2015-07-11 08:35:15 +02:00
|
|
|
version = "8.0.01";
|
2010-07-28 17:35:01 +02:00
|
|
|
|
|
|
|
ttf = fetchurl {
|
2015-07-11 08:35:15 +02:00
|
|
|
url = "http://fossies.org/linux/unifont/font/precompiled/${name}.ttf";
|
|
|
|
sha256 = "0g4g2n024072cdrs2wjp7xmkr3i9dm52a5g9hiafxjgj5a45c8kl";
|
2008-03-02 19:39:33 +01:00
|
|
|
};
|
2010-07-28 17:35:01 +02:00
|
|
|
|
|
|
|
pcf = fetchurl {
|
2015-07-11 08:35:15 +02:00
|
|
|
url = "http://fossies.org/linux/unifont/font/precompiled/${name}.pcf.gz";
|
|
|
|
sha256 = "0mpdy2k7z9s60x8i6sbv64p9wrihfwgrw81x5yj13rl6x7zzghr8";
|
2008-03-02 19:39:33 +01:00
|
|
|
};
|
2010-07-28 17:35:01 +02:00
|
|
|
|
2015-01-11 15:07:51 +01:00
|
|
|
buildInputs = [ mkfontscale mkfontdir ];
|
2010-07-28 17:35:01 +02:00
|
|
|
|
2015-01-11 15:07:51 +01:00
|
|
|
phases = "installPhase";
|
2010-07-28 17:35:01 +02:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/fonts $out/share/fonts/truetype
|
2015-01-11 15:07:51 +01:00
|
|
|
cp -v ${pcf} $out/share/fonts/unifont.pcf.gz
|
|
|
|
cp -v ${ttf} $out/share/fonts/truetype/unifont.ttf
|
2010-07-28 17:35:01 +02:00
|
|
|
cd $out/share/fonts
|
2015-01-11 15:07:51 +01:00
|
|
|
mkfontdir
|
2010-07-28 17:35:01 +02:00
|
|
|
mkfontscale
|
|
|
|
'';
|
2015-01-11 15:07:51 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Unicode font for Base Multilingual Plane";
|
2015-01-11 15:07:51 +01:00
|
|
|
homepage = http://unifoundry.com/unifont.html;
|
|
|
|
|
|
|
|
# Basically GPL2+ with font exception.
|
|
|
|
license = http://unifoundry.com/LICENSE.txt;
|
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
platforms = platforms.all;
|
2008-03-02 19:39:33 +01:00
|
|
|
};
|
2010-07-28 17:35:01 +02:00
|
|
|
}
|