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}";
|
2018-06-06 14:17:07 -07:00
|
|
|
version = "11.0.01";
|
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";
|
2018-06-06 14:17:07 -07:00
|
|
|
sha256 = "03nnfnh4j60a4hy0d4hqpnvhlfx437hp4g1wjfjy91vzrcbmvkwi";
|
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";
|
2018-06-06 14:17:07 -07:00
|
|
|
sha256 = "03bqqz2ipy3afhwsfy30c2v97cc27grw11lc0vzcvrgvin9ys2v1";
|
2008-03-02 10:39:33 -08:00
|
|
|
};
|
2010-07-28 08:35:01 -07:00
|
|
|
|
2018-01-09 16:27:23 -08:00
|
|
|
nativeBuildInputs = [ 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
|
|
|
|
2017-08-10 12:43:49 -07:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
2018-06-06 14:17:07 -07:00
|
|
|
outputHash = "1ncllq42x1mlblf6h44garc3b5hkxv9dkpgbaipzll22p1l29yrf";
|
2017-08-10 12:43:49 -07:00
|
|
|
|
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
|
|
|
}
|