2014-11-06 17:42:37 +00:00
|
|
|
{stdenv, fetchurl, fontforge, pythonPackages, python}:
|
2008-03-02 18:39:33 +00:00
|
|
|
|
2009-07-09 12:07:45 +00: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 12:07:45 +00: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 12:07:45 +00: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 12:07:45 +00:00
|
|
|
|
2016-02-01 07:47:56 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Liberation Fonts, replacements for Times New Roman, Arial, and Courier New";
|
2009-07-09 12:07:45 +00: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 12:07:45 +00: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 12:07:45 +00:00
|
|
|
homepage = https://fedorahosted.org/liberation-fonts/;
|
|
|
|
maintainers = [
|
2016-02-01 07:47:56 +00:00
|
|
|
maintainers.raskin
|
2009-07-09 12:07:45 +00:00
|
|
|
];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.unix;
|
2009-07-09 12:07:45 +00:00
|
|
|
};
|
2008-03-02 18:39:33 +00:00
|
|
|
}
|