diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-03-02 19:19:34 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-03-02 19:19:34 +0000 |
commit | 7d5ddd88a9957aa3d5db284b33f2791f99f243bc (patch) | |
tree | 7e1276f488d522e258b399133657a1d17d8b845e /pkgs/data | |
parent | 71f8e0911af4c7e22d477b6bc611ef337c361d34 (diff) |
Added UCS-fonts
svn path=/nixpkgs/trunk/; revision=10915
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/fontWrap/default.nix | 8 | ||||
-rw-r--r-- | pkgs/data/fonts/ucs-fonts/default.nix | 40 |
2 files changed, 47 insertions, 1 deletions
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]; + }; +}) + |