Author: raskin
Date: Sat Nov  6 09:45:13 2010
New Revision: 24610
URL: https://svn.nixos.org/websvn/nix/?rev=24610&sc=1

Log:
Adding andagii font

Added:
   nixpkgs/trunk/pkgs/data/fonts/andagii/
   nixpkgs/trunk/pkgs/data/fonts/andagii/default.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/data/fonts/andagii/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/data/fonts/andagii/default.nix   Sat Nov  6 09:45:13 
2010        (r24610)
@@ -0,0 +1,58 @@
+...@{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
+

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Fri Nov  5 14:54:47 
2010        (r24609)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sat Nov  6 09:45:13 
2010        (r24610)
@@ -5104,6 +5104,8 @@
 
   ### DATA
 
+  andagii = callPackage ../data/fonts/andagii {};
+
   arkpandora_ttf = builderDefsPackage (import ../data/fonts/arkpandora) {
   };
 
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to