2014-11-06 17:42:37 +00:00
|
|
|
{stdenv, fetchurl, fontforge, pythonPackages, python}:
|
2008-03-02 18:39:33 +00:00
|
|
|
|
2009-07-09 13:07:45 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-06 17:42:37 +00:00
|
|
|
name = "liberation-fonts-2.00.1";
|
2014-11-06 09:03:42 +00:00
|
|
|
|
2008-03-02 18:39:33 +00:00
|
|
|
src = fetchurl {
|
2009-07-09 13:07:45 +01:00
|
|
|
url = "https://fedorahosted.org/releases/l/i/liberation-fonts/${name}.tar.gz";
|
2014-11-06 17:42:37 +00:00
|
|
|
sha256 = "1ymryvd2nw4jmw4w5y1i3ll2dn48rpkqzlsgv7994lk6qc9cdjvs";
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2014-11-06 17:42:37 +00:00
|
|
|
buildInputs = [ fontforge pythonPackages.fonttools python ];
|
|
|
|
|
2008-03-02 18:39:33 +00:00
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
2014-11-06 17:42:37 +00:00
|
|
|
cp -v $(find . -name '*.ttf') $out/share/fonts/truetype
|
2009-07-09 13:07:45 +01:00
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/doc/${name}"
|
2014-11-06 17:42:37 +00:00
|
|
|
cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}" || true
|
2008-03-02 18:39:33 +00:00
|
|
|
'';
|
2009-07-09 13:07:45 +01:00
|
|
|
|
2016-02-01 07:47:56 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Liberation Fonts, replacements for Times New Roman, Arial, and Courier New";
|
2009-07-09 13:07:45 +01:00
|
|
|
longDescription = ''
|
|
|
|
The Liberation Fonts are intended to be replacements for the three most
|
|
|
|
commonly used fonts on Microsoft systems: Times New Roman, Arial, and
|
2016-02-01 07:47:56 +00:00
|
|
|
Courier New. Since 2012 they are based on croscore fonts.
|
2009-07-09 13:07:45 +01:00
|
|
|
|
|
|
|
There are three sets: Sans (a substitute for Arial, Albany, Helvetica,
|
|
|
|
Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times
|
|
|
|
New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono
|
|
|
|
(a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and
|
|
|
|
Bitstream Vera Sans Mono).
|
|
|
|
'';
|
|
|
|
|
2016-02-01 07:47:56 +00:00
|
|
|
license = licenses.ofl;
|
2009-07-09 13:07:45 +01:00
|
|
|
homepage = https://fedorahosted.org/liberation-fonts/;
|
|
|
|
maintainers = [
|
2016-02-01 07:47:56 +00:00
|
|
|
maintainers.raskin
|
2009-07-09 13:07:45 +01:00
|
|
|
];
|
|
|
|
};
|
2008-03-02 18:39:33 +00:00
|
|
|
}
|