2014-11-06 18:42:37 +01:00
|
|
|
{stdenv, fetchurl, fontforge, pythonPackages, python}:
|
2008-03-02 19:39:33 +01:00
|
|
|
|
2009-07-09 14:07:45 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-06 18:42:37 +01:00
|
|
|
name = "liberation-fonts-2.00.1";
|
2014-11-06 10:03:42 +01:00
|
|
|
|
2008-03-02 19:39:33 +01:00
|
|
|
src = fetchurl {
|
2009-07-09 14:07:45 +02:00
|
|
|
url = "https://fedorahosted.org/releases/l/i/liberation-fonts/${name}.tar.gz";
|
2014-11-06 18:42:37 +01:00
|
|
|
sha256 = "1ymryvd2nw4jmw4w5y1i3ll2dn48rpkqzlsgv7994lk6qc9cdjvs";
|
2008-03-02 19:39:33 +01:00
|
|
|
};
|
2014-11-06 01:44:33 +01:00
|
|
|
|
2014-11-06 18:42:37 +01:00
|
|
|
buildInputs = [ fontforge pythonPackages.fonttools python ];
|
|
|
|
|
2008-03-02 19:39:33 +01:00
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
2014-11-06 18:42:37 +01:00
|
|
|
cp -v $(find . -name '*.ttf') $out/share/fonts/truetype
|
2009-07-09 14:07:45 +02:00
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/doc/${name}"
|
2014-11-06 18:42:37 +01:00
|
|
|
cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}" || true
|
2008-03-02 19:39:33 +01:00
|
|
|
'';
|
2009-07-09 14:07:45 +02:00
|
|
|
|
2016-02-01 08:47:56 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Liberation Fonts, replacements for Times New Roman, Arial, and Courier New";
|
2009-07-09 14:07:45 +02: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 08:47:56 +01:00
|
|
|
Courier New. Since 2012 they are based on croscore fonts.
|
2009-07-09 14:07:45 +02: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 08:47:56 +01:00
|
|
|
license = licenses.ofl;
|
2009-07-09 14:07:45 +02:00
|
|
|
homepage = https://fedorahosted.org/liberation-fonts/;
|
|
|
|
maintainers = [
|
2016-02-01 08:47:56 +01:00
|
|
|
maintainers.raskin
|
2009-07-09 14:07:45 +02:00
|
|
|
];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.unix;
|
2009-07-09 14:07:45 +02:00
|
|
|
};
|
2008-03-02 19:39:33 +01:00
|
|
|
}
|