Add a binary-distribution-based Liberation fonts package
This commit is contained in:
parent
b7f7341169
commit
f891bc78d1
2 changed files with 50 additions and 0 deletions
49
pkgs/data/fonts/redhat-liberation-fonts/binary.nix
Normal file
49
pkgs/data/fonts/redhat-liberation-fonts/binary.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.00.1";
|
||||
name = "liberation-fonts-${version}";
|
||||
src = fetchurl {
|
||||
url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-${version}.tar.gz";
|
||||
sha256 = "010m4zfqan4w04b6bs9pm3gapn9hsb18bmwwgp2p6y6idj52g43q";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp -v $( find . -name '*.ttf') $out/share/fonts/truetype
|
||||
|
||||
mkdir -p "$out/doc/${name}"
|
||||
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 = "GPLv2 + exception";
|
||||
|
||||
homepage = https://fedorahosted.org/liberation-fonts/;
|
||||
|
||||
maintainers = [
|
||||
stdenv.lib.maintainers.raskin
|
||||
stdenv.lib.maintainers.ludo
|
||||
];
|
||||
};
|
||||
}
|
|
@ -8687,6 +8687,7 @@ let
|
|||
kochi-substitute-naga10 = callPackage ../data/fonts/kochi-substitute-naga10 {};
|
||||
|
||||
liberation_ttf = callPackage ../data/fonts/redhat-liberation-fonts { };
|
||||
liberation_ttf_binary = callPackage ../data/fonts/redhat-liberation-fonts/binary.nix { };
|
||||
|
||||
libertine = builderDefsPackage (import ../data/fonts/libertine) {
|
||||
inherit fetchurl fontforge lib;
|
||||
|
|
Loading…
Reference in a new issue