mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Adding Gentium font
svn path=/nixpkgs/trunk/; revision=27310
This commit is contained in:
parent
f709eff234
commit
da94743917
46
pkgs/data/fonts/gentium/default.nix
Normal file
46
pkgs/data/fonts/gentium/default.nix
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
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.504";
|
||||||
|
baseName="GentiumPlus";
|
||||||
|
name="${baseName}-${version}";
|
||||||
|
url="http://scripts.sil.org/cms/scripts/render_download.php?&format=file&media_id=${name}.zip&filename=${name}";
|
||||||
|
hash="04kslaqbscpfrc6igkifcv1nkrclrm35hqpapjhw9102wpq12fpr";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
src = a.fetchurl {
|
||||||
|
url = sourceInfo.url;
|
||||||
|
sha256 = sourceInfo.hash;
|
||||||
|
name = "${sourceInfo.name}.zip";
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit (sourceInfo) name version;
|
||||||
|
inherit buildInputs;
|
||||||
|
|
||||||
|
phaseNames = ["addInputs" "doUnpack" "installFonts"];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
maintainers = with a.lib.maintainers;
|
||||||
|
[
|
||||||
|
raskin
|
||||||
|
];
|
||||||
|
platforms = with a.lib.platforms;
|
||||||
|
all;
|
||||||
|
};
|
||||||
|
passthru = {
|
||||||
|
updateInfo = {
|
||||||
|
downloadPage = "http://scripts.sil.org/cms/scripts/page.php?item_id=Gentium_download";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}) x
|
||||||
|
|
@ -5734,6 +5734,8 @@ let
|
|||||||
|
|
||||||
freefont_ttf = callPackage ../data/fonts/freefont-ttf { };
|
freefont_ttf = callPackage ../data/fonts/freefont-ttf { };
|
||||||
|
|
||||||
|
gentium = callPackage ../data/fonts/gentium {};
|
||||||
|
|
||||||
hicolor_icon_theme = callPackage ../data/misc/hicolor-icon-theme { };
|
hicolor_icon_theme = callPackage ../data/misc/hicolor-icon-theme { };
|
||||||
|
|
||||||
inconsolata = callPackage ../data/fonts/inconsolata {};
|
inconsolata = callPackage ../data/fonts/inconsolata {};
|
||||||
|
Loading…
Reference in New Issue
Block a user