diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-11-29 16:03:36 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-11-29 16:03:36 +0000 |
commit | 009bfb702d1c018fc32b10bab07d82ded62a1f0b (patch) | |
tree | b4081a1f5eb92df751ce86873ce0880fb044051c /pkgs/data/fonts | |
parent | 9d0330014e3062f341fd8eed362aadb17e85d5dc (diff) | |
parent | 6ff77b7f6cc91746a23c01ecb6ad7ddd04b1c675 (diff) |
* Sync with the trunk.
svn path=/nixpkgs/branches/cve-2010-3856/; revision=24921
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r-- | pkgs/data/fonts/anonymous-pro/default.nix | 50 | ||||
-rw-r--r-- | pkgs/data/fonts/inconsolata/default.nix | 51 |
2 files changed, 101 insertions, 0 deletions
diff --git a/pkgs/data/fonts/anonymous-pro/default.nix b/pkgs/data/fonts/anonymous-pro/default.nix new file mode 100644 index 0000000000000..42f32f0ba7160 --- /dev/null +++ b/pkgs/data/fonts/anonymous-pro/default.nix @@ -0,0 +1,50 @@ +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 { + version="1.002"; + name="anonymousPro"; + url="http://www.ms-studio.com/FontSales/AnonymousPro-${version}.zip"; + hash="86665847a51cdfb58a1e1dfd8b1ba33f183485affe50b53e3304f63d3d3552ab"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + phaseNames = ["doUnpack" "installFonts"]; + + doUnpack = a.fullDepEntry ('' + unzip ${src} + cd AnonymousPro*/ + '') ["addInputs"]; + + meta = { + description = "A TrueType font set intended for source code"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + all; + }; + passthru = { + updateInfo = { + downloadPage = "http://www.ms-studio.com/FontSales/anonymouspro.html"; + }; + }; +}) x + diff --git a/pkgs/data/fonts/inconsolata/default.nix b/pkgs/data/fonts/inconsolata/default.nix new file mode 100644 index 0000000000000..887f37c241b6a --- /dev/null +++ b/pkgs/data/fonts/inconsolata/default.nix @@ -0,0 +1,51 @@ +x@{builderDefsPackage + , fontforge + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + name="inconsolata"; + url="http://www.levien.com/type/myfonts/Inconsolata.sfd"; + hash="1cd29c8396adb18bfeddb1abf5bdb98b677649bb9b09f126d1335b123a4cfddb"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["copySrc" "generateFontsFromSFD" "installFonts"]; + + copySrc = a.fullDepEntry ('' + cp ${src} inconsolata.sfd + '') ["minInit"]; + + generateFontsFromSFD = a.generateFontsFromSFD // {deps=["addInputs"];}; + + meta = { + description = "A monospace font for both screen and print"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + all; + }; + passthru = { + updateInfo = { + downloadPage = "http://www.levien.com/type/myfonts/inconsolata.html"; + }; + }; +}) x + |