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}";
|
2019-05-12 23:24:30 +02:00
|
|
|
version = "12.1.01";
|
2010-07-28 17:35:01 +02:00
|
|
|
|
|
|
|
ttf = fetchurl {
|
2016-11-05 07:55:04 +01:00
|
|
|
url = "mirror://gnu/unifont/${name}/${name}.ttf";
|
2019-05-12 23:24:30 +02:00
|
|
|
sha256 = "05knv3vlnk8ahaybwz6r95d3a1h7h7q9ll6ij2jl7zgjhcx4zy5d";
|
2008-03-02 19:39:33 +01:00
|
|
|
};
|
2010-07-28 17:35:01 +02:00
|
|
|
|
|
|
|
pcf = fetchurl {
|
2016-11-05 07:55:04 +01:00
|
|
|
url = "mirror://gnu/unifont/${name}/${name}.pcf.gz";
|
2019-05-12 23:24:30 +02:00
|
|
|
sha256 = "0q7dlnfzk49m4pgf2s7jv05jysa6sfxx3w0y17yis9j7g18lyw1b";
|
2008-03-02 19:39:33 +01:00
|
|
|
};
|
2010-07-28 17:35:01 +02:00
|
|
|
|
2018-01-10 01:27:23 +01:00
|
|
|
nativeBuildInputs = [ 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
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
2019-05-12 23:24:30 +02:00
|
|
|
outputHash = "0sgdr9dma4hkda3siydfvjrnzrpri8r7iqs2zqf77z9n4zn90qp5";
|
2017-08-10 21:43:49 +02:00
|
|
|
|
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;
|
2016-07-04 19:32:08 +02:00
|
|
|
maintainers = [ maintainers.rycee maintainers.vrthra ];
|
2015-01-11 15:07:51 +01:00
|
|
|
platforms = platforms.all;
|
2008-03-02 19:39:33 +01:00
|
|
|
};
|
2010-07-28 17:35:01 +02:00
|
|
|
}
|