summary refs log tree commit diff
path: root/pkgs/data/fonts/libertine/default.nix
blob: a0ed5f757974ba270df79514804de8f7cb880b6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
  };
}