From 9ee09f4a554a15608bd3b7f6f5c2c1679b82b14c Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 2 Mar 2008 21:59:32 +0000 Subject: [PATCH] Added JUnicode svn path=/nixpkgs/trunk/; revision=10917 --- pkgs/data/fonts/junicode/0.6.15.nix | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/data/fonts/junicode/0.6.15.nix diff --git a/pkgs/data/fonts/junicode/0.6.15.nix b/pkgs/data/fonts/junicode/0.6.15.nix new file mode 100644 index 00000000000..f199b0ca269 --- /dev/null +++ b/pkgs/data/fonts/junicode/0.6.15.nix @@ -0,0 +1,32 @@ +args : with args; with builderDefs {src="";} null; + let localDefs = builderDefs (rec { + src = /* put a fetchurl here */ + fetchurl { + url = http://prdownloads.sourceforge.net/junicode/junicode-0.6.15.zip; + sha256 = "0p16r5s6qwyz0hayb6k61s5r2sfachlx7r6gpqqx5myx6ipbfdns"; + }; + + buildInputs = [unzip]; + configureFlags = []; + doInstall = FullDepEntry ('' + unzip ${src} + ensureDir $out/share/fonts/junicode-ttf + cp *.ttf $out/share/fonts/junicode-ttf + '') ["minInit" "addInputs" "defEnsureDir"]; + }) null; /* null is a terminator for sumArgs */ + in with localDefs; +stdenv.mkDerivation rec { + name = "junicode-"+version; + builder = writeScript (name + "-builder") + (textClosure localDefs + [doInstall doForceShare doPropagate]); + meta = { + description = " + A Unicode font. +"; + inherit src; + }; +} + + +