nixpkgs/pkgs/data/fonts/redhat-liberation-fonts/default.nix

51 lines
1.7 KiB
Nix
Raw Normal View History

2014-11-03 21:36:24 +00:00
{stdenv, fetchurl, fontforge, python, pythonPackages}:
stdenv.mkDerivation rec {
2014-11-03 21:36:24 +00:00
name = "liberation-fonts-2.00.1";
src = fetchurl {
url = "https://fedorahosted.org/releases/l/i/liberation-fonts/${name}.tar.gz";
2014-11-03 21:36:24 +00:00
sha256 = "1ymryvd2nw4jmw4w5y1i3ll2dn48rpkqzlsgv7994lk6qc9cdjvs";
};
2014-11-03 21:36:24 +00:00
buildInputs = [fontforge python pythonPackages.fonttools];
installPhase = ''
mkdir -p $out/share/fonts/truetype
2014-11-03 21:36:24 +00:00
cp -v $( find . -name '*.ttf') $out/share/fonts/truetype
mkdir -p "$out/doc/${name}"
2014-11-03 21:36:24 +00:00
cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}" || true
'';
meta = {
description = "Liberation Fonts, replacements for Times New Roman, Arial, and Courier New";
longDescription = ''
The Liberation Fonts are intended to be replacements for the three most
commonly used fonts on Microsoft systems: Times New Roman, Arial, and
Courier New.
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).
You are free to use these fonts on any system you would like. You are
free to redistribute them under the GPL+exception license found in the
download. Using these fonts does not subject your documents to the
GPL---it liberates them from any proprietary claim.
'';
# See `License.txt' for details.
license = stdenv.lib.licenses.gpl2Oss;
homepage = https://fedorahosted.org/liberation-fonts/;
maintainers = [
stdenv.lib.maintainers.raskin
stdenv.lib.maintainers.ludo
];
};
}