Merge pull request #22415 from volth/liberation_ttf_v1
liberation-fonts: init at 1.07.4
This commit is contained in:
commit
948361522a
|
@ -1,20 +0,0 @@
|
||||||
{ stdenv, fetchurl, liberation_ttf_from_source }:
|
|
||||||
|
|
||||||
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
|
|
||||||
'';
|
|
||||||
|
|
||||||
inherit (liberation_ttf_from_source) meta;
|
|
||||||
}
|
|
|
@ -1,42 +1,70 @@
|
||||||
{stdenv, fetchurl, fontforge, pythonPackages, python}:
|
{stdenv, fetchurl, fontforge, pythonPackages, python}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "liberation-fonts-2.00.1";
|
common =
|
||||||
|
{version, url, sha256, buildInputs}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "liberation-fonts-${version}";
|
||||||
|
src = fetchurl {
|
||||||
|
inherit url sha256;
|
||||||
|
};
|
||||||
|
|
||||||
src = fetchurl {
|
inherit buildInputs;
|
||||||
url = "https://fedorahosted.org/releases/l/i/liberation-fonts/${name}.tar.gz";
|
|
||||||
|
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 = with stdenv.lib; {
|
||||||
|
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. Since 2012 they are based on croscore fonts.
|
||||||
|
|
||||||
|
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).
|
||||||
|
'';
|
||||||
|
|
||||||
|
license = licenses.ofl;
|
||||||
|
homepage = https://fedorahosted.org/liberation-fonts/;
|
||||||
|
maintainers = [
|
||||||
|
maintainers.raskin
|
||||||
|
];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in {
|
||||||
|
liberation_ttf_v1_from_source = common rec {
|
||||||
|
version = "1.07.4";
|
||||||
|
url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-${version}.tar.gz";
|
||||||
|
sha256 = "01jlg88q2s6by7qv6fmnrlx0lwjarrjrpxv811zjz6f2im4vg65d";
|
||||||
|
buildInputs = [ fontforge pythonPackages.fonttools python ];
|
||||||
|
};
|
||||||
|
liberation_ttf_v1_binary = common rec {
|
||||||
|
version = "1.07.4";
|
||||||
|
url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-${version}.tar.gz";
|
||||||
|
sha256 = "0p7frz29pmjlk2d0j2zs5kfspygwdnpzxkb2hwzcfhrafjvf59v1";
|
||||||
|
buildInputs = [ ];
|
||||||
|
};
|
||||||
|
liberation_ttf_v2_from_source = common rec {
|
||||||
|
version = "2.00.1";
|
||||||
|
url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-${version}.tar.gz";
|
||||||
sha256 = "1ymryvd2nw4jmw4w5y1i3ll2dn48rpkqzlsgv7994lk6qc9cdjvs";
|
sha256 = "1ymryvd2nw4jmw4w5y1i3ll2dn48rpkqzlsgv7994lk6qc9cdjvs";
|
||||||
|
buildInputs = [ fontforge pythonPackages.fonttools python ];
|
||||||
};
|
};
|
||||||
|
liberation_ttf_v2_binary = common rec {
|
||||||
buildInputs = [ fontforge pythonPackages.fonttools python ];
|
version = "2.00.1";
|
||||||
|
url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-${version}.tar.gz";
|
||||||
installPhase = ''
|
sha256 = "010m4zfqan4w04b6bs9pm3gapn9hsb18bmwwgp2p6y6idj52g43q";
|
||||||
mkdir -p $out/share/fonts/truetype
|
buildInputs = [ ];
|
||||||
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 = with stdenv.lib; {
|
|
||||||
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. Since 2012 they are based on croscore fonts.
|
|
||||||
|
|
||||||
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).
|
|
||||||
'';
|
|
||||||
|
|
||||||
license = licenses.ofl;
|
|
||||||
homepage = https://fedorahosted.org/liberation-fonts/;
|
|
||||||
maintainers = [
|
|
||||||
maintainers.raskin
|
|
||||||
];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, lib, buildEnv, makeFontsConf, gnused, writeScript, xorg, bashInteractive, substituteAll, xterm, makeWrapper, ruby
|
{ stdenv, lib, buildEnv, makeFontsConf, gnused, writeScript, xorg, bashInteractive, substituteAll, xterm, makeWrapper, ruby
|
||||||
, openssl, quartz-wm, fontconfig, xlsfonts, xfontsel
|
, openssl, quartz-wm, fontconfig, xlsfonts, xfontsel
|
||||||
, ttf_bitstream_vera, freefont_ttf, liberation_ttf_binary
|
, ttf_bitstream_vera, freefont_ttf, liberation_ttf
|
||||||
, shell ? "${bashInteractive}/bin/bash"
|
, shell ? "${bashInteractive}/bin/bash"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ let
|
||||||
xorg.fontbhlucidatypewriter75dpi
|
xorg.fontbhlucidatypewriter75dpi
|
||||||
ttf_bitstream_vera
|
ttf_bitstream_vera
|
||||||
freefont_ttf
|
freefont_ttf
|
||||||
liberation_ttf_binary
|
liberation_ttf
|
||||||
xorg.fontbh100dpi
|
xorg.fontbh100dpi
|
||||||
xorg.fontmiscmisc
|
xorg.fontmiscmisc
|
||||||
xorg.fontcursormisc
|
xorg.fontcursormisc
|
||||||
|
|
|
@ -12126,9 +12126,12 @@ with pkgs;
|
||||||
|
|
||||||
league-of-moveable-type = callPackage ../data/fonts/league-of-moveable-type {};
|
league-of-moveable-type = callPackage ../data/fonts/league-of-moveable-type {};
|
||||||
|
|
||||||
liberation_ttf_from_source = callPackage ../data/fonts/redhat-liberation-fonts { };
|
inherit (callPackages ../data/fonts/redhat-liberation-fonts { })
|
||||||
liberation_ttf_binary = callPackage ../data/fonts/redhat-liberation-fonts/binary.nix { };
|
liberation_ttf_v1_from_source
|
||||||
liberation_ttf = liberation_ttf_binary;
|
liberation_ttf_v1_binary
|
||||||
|
liberation_ttf_v2_from_source
|
||||||
|
liberation_ttf_v2_binary;
|
||||||
|
liberation_ttf = liberation_ttf_v2_binary;
|
||||||
|
|
||||||
liberationsansnarrow = callPackage ../data/fonts/liberationsansnarrow { };
|
liberationsansnarrow = callPackage ../data/fonts/liberationsansnarrow { };
|
||||||
liberationsansnarrow_binary = callPackage ../data/fonts/liberationsansnarrow/binary.nix { };
|
liberationsansnarrow_binary = callPackage ../data/fonts/liberationsansnarrow/binary.nix { };
|
||||||
|
|
Loading…
Reference in a new issue