diff options
Diffstat (limited to 'pkgs/data/fonts/libertine/default.nix')
-rw-r--r-- | pkgs/data/fonts/libertine/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/data/fonts/libertine/default.nix b/pkgs/data/fonts/libertine/default.nix new file mode 100644 index 000000000000..a0ed5f757974 --- /dev/null +++ b/pkgs/data/fonts/libertine/default.nix @@ -0,0 +1,27 @@ +args : with args; +rec { + src = fetchurl { + url = http://downloads.sourceforge.net/linuxlibertine/5.0.0/LinLibertineSRC_2011_05_22.tgz; + sha256 = "1cr0kvvlqrcmaxfl6szfp3m93mcnhmypx33dxmdm3xdxxkab74vg"; + }; + + buildInputs = [fontforge]; + configureFlags = []; + + /* doConfigure should be specified separately */ + phaseNames = ["doUnpack" "generateFontsFromSFD" "installFonts"]; + + extraFontForgeCommands = '' + ScaleToEm(1000); + ''; + + doUnpack = fullDepEntry '' + tar xf ${src} + '' ["minInit"]; + + name = "linux-libertine-5.0.0"; + meta = { + description = "Linux Libertine Fonts"; + homepage = http://linuxlibertine.sf.net; + }; +} |