2015-01-11 14:07:51 +00:00
|
|
|
{ stdenv, fetchurl, mkfontscale, mkfontdir }:
|
2010-07-28 15:35:01 +00:00
|
|
|
|
2015-01-11 14:07:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "unifont-${version}";
|
2018-12-15 21:56:17 +00:00
|
|
|
version = "11.0.03";
|
2010-07-28 15:35:01 +00:00
|
|
|
|
|
|
|
ttf = fetchurl {
|
2016-11-05 06:55:04 +00:00
|
|
|
url = "mirror://gnu/unifont/${name}/${name}.ttf";
|
2018-12-15 21:56:17 +00:00
|
|
|
sha256 = "1fqlf3kczh1y7vhpcdcs1i9043idg5x9jisfqfd99sikvcbw7w75";
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
2010-07-28 15:35:01 +00:00
|
|
|
|
|
|
|
pcf = fetchurl {
|
2016-11-05 06:55:04 +00:00
|
|
|
url = "mirror://gnu/unifont/${name}/${name}.pcf.gz";
|
2018-12-15 21:56:17 +00:00
|
|
|
sha256 = "0wqcmvkqdww60hqh245whzh4mx3frrx2712lay826f9h5s4ywz6g";
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
2010-07-28 15:35:01 +00:00
|
|
|
|
2018-01-10 00:27:23 +00:00
|
|
|
nativeBuildInputs = [ mkfontscale mkfontdir ];
|
2010-07-28 15:35:01 +00:00
|
|
|
|
2015-01-11 14:07:51 +00:00
|
|
|
phases = "installPhase";
|
2010-07-28 15:35:01 +00: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 15:35:01 +00:00
|
|
|
cd $out/share/fonts
|
2015-01-11 14:07:51 +00:00
|
|
|
mkfontdir
|
2010-07-28 15:35:01 +00:00
|
|
|
mkfontscale
|
|
|
|
'';
|
2015-01-11 14:07:51 +00:00
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
2018-12-15 21:56:17 +00:00
|
|
|
outputHash = "006jbla4zfwccyy84sm4ck869sq5az5s5cfkcmdgj7ah3rz4d7dn";
|
2017-08-10 19:43:49 +00:00
|
|
|
|
2015-01-11 14:07:51 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 09:49:53 +00: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 17:32:08 +00: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 15:35:01 +00:00
|
|
|
}
|