Adding CM-Unicode fonts
svn path=/nixpkgs/trunk/; revision=27311
This commit is contained in:
parent
da94743917
commit
65cd495061
44
pkgs/data/fonts/cm-unicode/default.nix
Normal file
44
pkgs/data/fonts/cm-unicode/default.nix
Normal file
@ -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
|
||||||
|
|
@ -5708,6 +5708,8 @@ let
|
|||||||
|
|
||||||
clearlyU = callPackage ../data/fonts/clearlyU { };
|
clearlyU = callPackage ../data/fonts/clearlyU { };
|
||||||
|
|
||||||
|
cm_unicode = callPackage ../data/fonts/cm-unicode {};
|
||||||
|
|
||||||
dejavu_fonts = callPackage ../data/fonts/dejavu-fonts {
|
dejavu_fonts = callPackage ../data/fonts/dejavu-fonts {
|
||||||
inherit (perlPackages) FontTTF;
|
inherit (perlPackages) FontTTF;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user