1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 17:25:11 +00:00
nixpkgs/pkgs/data/fonts/ucs-fonts/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, mkfontdir, mkfontscale }:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "ucs-fonts";
version = "20090406";
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 = ".";
nativeBuildInputs = [ mkfontdir mkfontscale ];
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/share/fonts
cp *.bdf $out/share/fonts
cd $out/share/fonts
mkfontdir
mkfontscale
'';
2017-08-10 20:43:49 +01:00
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "12fh3kbsib0baqwk6148fnzqrj9gs4vnl7yd5n9km72sic1z1xwk";
meta = with stdenv.lib; {
2020-02-17 15:02:25 +00:00
homepage = https://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html;
description = "Unicode bitmap fonts";
maintainers = [ maintainers.raskin ];
platforms = platforms.all;
};
}