nixpkgs/pkgs/data/fonts/libertine/default.nix

27 lines
667 B
Nix
Raw Normal View History

args @ { fetchurl, fontforge, lib, ... }: with args; rec {
2013-01-10 21:34:05 +00:00
name = "linux-libertine-5.3.0";
src = fetchurl {
url = mirror://sourceforge/linuxlibertine/5.3.0/LinLibertineSRC_5.3.0_2012_07_02.tgz;
2013-01-10 21:34:05 +00:00
sha256 = "0x7cz6hvhpil1rh03rax9zsfzm54bh7r4bbrq8rz673gl9h47v0v";
};
2013-01-10 21:34:05 +00:00
buildInputs = [ fontforge ];
/* doConfigure should be specified separately */
phaseNames = ["doUnpack" "generateFontsFromSFD" "installFonts"];
2013-01-10 21:34:05 +00:00
extraFontForgeCommands = ''
ScaleToEm(1000);
'';
2013-01-10 21:34:05 +00:00
doUnpack = lib.fullDepEntry ''
tar xf ${src}
'' ["minInit"];
meta = {
description = "Linux Libertine Fonts";
homepage = http://linuxlibertine.sf.net;
};
}