summary refs log tree commit diff
path: root/pkgs/data/fonts/cm-unicode/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/data/fonts/cm-unicode/default.nix')
-rw-r--r--pkgs/data/fonts/cm-unicode/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/data/fonts/cm-unicode/default.nix b/pkgs/data/fonts/cm-unicode/default.nix
new file mode 100644
index 000000000000..b8f7f7c6d3ef
--- /dev/null
+++ b/pkgs/data/fonts/cm-unicode/default.nix
@@ -0,0 +1,44 @@
+x@{builderDefsPackage
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    [];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+  sourceInfo = rec {
+    version="0.6.3a";
+    baseName="cm-unicode";
+    name="${baseName}-${version}";
+    url="ftp://canopus.iacp.dvo.ru/pub/Font/cm_unicode/${name}-otf.tar.gz";
+    hash="1018gmvh7wl7sm6f3fqd917syd1yy0gz3pxmrc9lkxckcr7wz0zp";
+  };
+in
+rec {
+  src = a.fetchurl {
+    url = sourceInfo.url;
+    sha256 = sourceInfo.hash;
+  };
+
+  inherit (sourceInfo) name version;
+  inherit buildInputs;
+
+  phaseNames = ["doUnpack" "installFonts"];
+
+  meta = {
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      all;
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://canopus.iacp.dvo.ru/~panov/cm-unicode/download.html";
+    };
+  };
+}) x
+