about summary refs log tree commit diff
path: root/pkgs/data/fonts/andagii
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2010-11-06 09:45:13 +0000
committerMichael Raskin <7c6f434c@mail.ru>2010-11-06 09:45:13 +0000
commit384eefe26bdb25d905e64d3c2273a308c0444751 (patch)
treed3186326b7d8afa5019d7c9f4215bbd9c465ad54 /pkgs/data/fonts/andagii
parentffebdb77c3c7a505bb08554775bc1fe8d49d358d (diff)
Adding andagii font
svn path=/nixpkgs/trunk/; revision=24610
Diffstat (limited to 'pkgs/data/fonts/andagii')
-rw-r--r--pkgs/data/fonts/andagii/default.nix58
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/data/fonts/andagii/default.nix b/pkgs/data/fonts/andagii/default.nix
new file mode 100644
index 0000000000000..8c2803c26d70b
--- /dev/null
+++ b/pkgs/data/fonts/andagii/default.nix
@@ -0,0 +1,58 @@
+x@{builderDefsPackage
+  , unzip
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    [];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+  sourceInfo = rec {
+    url="http://www.i18nguy.com/unicode/andagii.zip";
+    name="andagii";
+    hash="0cknb8vin15akz4ahpyayrpqyaygp9dgrx6qw7zs7d6iv9v59ds1";
+  };
+in
+rec {
+  src = a.fetchurl {
+    url = sourceInfo.url;
+    sha256 = sourceInfo.hash;
+  };
+
+  inherit (sourceInfo) name version;
+  inherit buildInputs;
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["doUnpack" "doInstall"];
+
+  doUnpack = a.fullDepEntry ''
+    unzip "${src}"
+  '' ["addInputs"];
+
+  doInstall = a.fullDepEntry (''
+    ensureDir "$out"/share/fonts/ttf/
+    cp ANDAGII_.TTF "$out"/share/fonts/ttf/andagii.ttf
+  '') ["defEnsureDir" "minInit"];
+      
+  meta = {
+    description = "Unicode Plane 1 Osmanya script font";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      [];
+    # There are multiple claims that the font is GPL, 
+    # so I include the package; but I cannot find the
+    # original source, so use it on your own risk
+    # Debian claims it is GPL - good enough for me.
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://www.i18nguy.com/unicode/unicode-font.html";
+    };
+  };
+}) x
+