From 7d5ddd88a9957aa3d5db284b33f2791f99f243bc Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 2 Mar 2008 19:19:34 +0000 Subject: Added UCS-fonts svn path=/nixpkgs/trunk/; revision=10915 --- pkgs/data/fonts/fontWrap/default.nix | 8 ++++++- pkgs/data/fonts/ucs-fonts/default.nix | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 pkgs/data/fonts/ucs-fonts/default.nix (limited to 'pkgs/data/fonts') diff --git a/pkgs/data/fonts/fontWrap/default.nix b/pkgs/data/fonts/fontWrap/default.nix index 01e2d2b2ae841..3e2dc1d2c349e 100644 --- a/pkgs/data/fonts/fontWrap/default.nix +++ b/pkgs/data/fonts/fontWrap/default.nix @@ -1,7 +1,7 @@ args : with args; let localDefs = builderDefs { src =""; /* put a fetchurl here */ - buildInputs = [mkfontdir mkfontscale]; + buildInputs = [mkfontdir mkfontscale ttmkfdir]; configureFlags = []; } null; /* null is a terminator for sumArgs */ in with localDefs; @@ -14,6 +14,12 @@ let done mkfontdir mkfontscale + mv fonts.scale fonts.scale.old + mv fonts.dir fonts.dir.old + ttmkfdir + cat fonts.dir.old >> fonts.dir + cat fonts.scale.old >> fonts.scale + rm fonts.dir.old fonts.scale.old ") [minInit addInputs defEnsureDir] ; in stdenv.mkDerivation rec { diff --git a/pkgs/data/fonts/ucs-fonts/default.nix b/pkgs/data/fonts/ucs-fonts/default.nix new file mode 100644 index 0000000000000..aef45dcd96cff --- /dev/null +++ b/pkgs/data/fonts/ucs-fonts/default.nix @@ -0,0 +1,40 @@ +args: with args; +let + +srcA= + fetchurl { + url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz; + sha256 = "11vripxw9dgasbgcgs1z4hc1yjdypby2grj6y3c1a0c9w3v40kix"; + }; +srcB= + fetchurl { + url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-asian.tar.gz; + sha256 = "0fgka3vy8agbkp6xjq7igilbv88p8m9hh2qyikqhcm2qajdvzc4j"; + }; +srcC= + fetchurl { + url = http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-75dpi100dpi.tar.gz; + sha256 = "08vqr8yb636xa1s28vf3pm22dzkia0gisvsi2svqjqh4kk290pzh"; + }; + +in +wrapFonts (stdenv.mkDerivation { + + name = "ucs-fonts"; + phases = ["installPhase"]; + installPhase = '' + tar xf ${srcA} + tar xf ${srcB} + tar xf ${srcC} + mkdir -p $out/share/fonts/ucs-fonts + cp *.bdf $out/share/fonts/ucs-fonts + ''; + + meta = { + description = " + UCS-fonts - Unicode bitmap fonts. + "; + src = [srcA srcB srcC]; + }; +}) + -- cgit 1.4.1