mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
715e01cfc2
* ucs-fonts: remove use of `wrapFonts` This cleans up the `ucs-fonts` package. In particular it removes the use of `wrapFonts`, which depends on `builderDefs`. It also renames the package attribute from `ucsFonts` to `ucs-fonts` (with the old name being an alias for the newer). * wrapFonts: remove Removed since this attribute is no longer used and depends on `builderDefs`.
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ stdenv, fetchurl, mkfontdir, mkfontscale }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ucs-fonts-${version}";
|
|
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 = ".";
|
|
|
|
buildInputs = [ mkfontdir mkfontscale ];
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/fonts
|
|
cp *.bdf $out/share/fonts
|
|
cd $out/share/fonts
|
|
mkfontdir
|
|
mkfontscale
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Unicode bitmap fonts";
|
|
maintainers = [ maintainers.raskin ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|