2016-07-23 02:07:44 +02:00
|
|
|
{ stdenv, fetchurl, mkfontdir, mkfontscale }:
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2016-07-23 02:07:44 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ucs-fonts-${version}";
|
|
|
|
version = "20090406";
|
2008-03-02 20:19:34 +01:00
|
|
|
|
2016-07-23 02:07:44 +02:00
|
|
|
srcs = [
|
|
|
|
(fetchurl {
|
|
|
|
url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz;
|
|
|
|
sha256 = "12hgizg25fzmk10wjl0c88x97h3pg5r9ga122s3y28wixz6x2bvh";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
|
|
|
url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-asian.tar.gz;
|
|
|
|
sha256 = "0ibjy4xpz5j373hsdr8bx99czfpclqmviwwv768j8n7z12z3wa51";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
|
|
|
url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-75dpi100dpi.tar.gz;
|
|
|
|
sha256 = "08vqr8yb636xa1s28vf3pm22dzkia0gisvsi2svqjqh4kk290pzh";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
2018-01-10 01:27:23 +01:00
|
|
|
nativeBuildInputs = [ mkfontdir mkfontscale ];
|
2008-03-02 20:19:34 +01:00
|
|
|
|
2016-07-23 02:07:44 +02:00
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
2008-03-02 20:19:34 +01:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
installPhase = ''
|
2016-07-23 02:07:44 +02:00
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
cp *.bdf $out/share/fonts
|
|
|
|
cd $out/share/fonts
|
|
|
|
mkfontdir
|
|
|
|
mkfontscale
|
2010-07-28 13:55:54 +02:00
|
|
|
'';
|
2008-03-02 20:19:34 +01:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHash = "12fh3kbsib0baqwk6148fnzqrj9gs4vnl7yd5n9km72sic1z1xwk";
|
|
|
|
|
2016-07-23 02:07:44 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Unicode bitmap fonts";
|
2016-07-23 02:07:44 +02:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.all;
|
2010-07-28 13:55:54 +02:00
|
|
|
};
|
2016-07-23 02:07:44 +02:00
|
|
|
}
|