git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22415 from volth/liberation_ttf_v1

liberation-fonts: init at 1.07.4

commit948361522a0c9bcaff83c8dac0684fa50d22b6bf authorMichael Raskin <7c6f434c@mail.ru> dateFri 3 Feb 2017, 22:07 (10 years ago) parentc1604546a5ee48
4 files changed+72−61
pkgs/data/fonts/redhat-liberation-fonts/binary.nix−20 pkgs/data/fonts/redhat-liberation-fonts/default.nix+64−36 pkgs/servers/x11/xquartz/default.nix+2−2 pkgs/top-level/all-packages.nix+6−3
pkgs/data/fonts/redhat-liberation-fonts/binary.nixdeleted−20
@@ -1,20 +0,0 @@
1−{ stdenv, fetchurl, liberation_ttf_from_source }:
2−
3−stdenv.mkDerivation rec {
4− version = "2.00.1";
5− name = "liberation-fonts-${version}";
6− src = fetchurl {
7− url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-${version}.tar.gz";
8− sha256 = "010m4zfqan4w04b6bs9pm3gapn9hsb18bmwwgp2p6y6idj52g43q";
9− };
10−
11− installPhase = ''
12− mkdir -p $out/share/fonts/truetype
13− cp -v $( find . -name '*.ttf') $out/share/fonts/truetype
14−
15− mkdir -p "$out/doc/${name}"
16− cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}" || true
17− '';
18−
19− inherit (liberation_ttf_from_source) meta;
20−}
pkgs/data/fonts/redhat-liberation-fonts/default.nix+64−36
@@ -1,42 +1,70 @@
11{stdenv, fetchurl, fontforge, pythonPackages, python}:
22
3−stdenv.mkDerivation rec {
4− name = "liberation-fonts-2.00.1";
3+let
4+ common =
5+ {version, url, sha256, buildInputs}:
6+ stdenv.mkDerivation rec {
7+ name = "liberation-fonts-${version}";
8+ src = fetchurl {
9+ inherit url sha256;
10+ };
511
6− src = fetchurl {
7− url = "https://fedorahosted.org/releases/l/i/liberation-fonts/${name}.tar.gz";
12+ inherit buildInputs;
13+
14+ installPhase = ''
15+ mkdir -p $out/share/fonts/truetype
16+ cp -v $( find . -name '*.ttf') $out/share/fonts/truetype
17+
18+ mkdir -p "$out/doc/${name}"
19+ cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}" || true
20+ '';
21+
22+ meta = with stdenv.lib; {
23+ description = "Liberation Fonts, replacements for Times New Roman, Arial, and Courier New";
24+ longDescription = ''
25+ The Liberation Fonts are intended to be replacements for the three most
26+ commonly used fonts on Microsoft systems: Times New Roman, Arial, and
27+ Courier New. Since 2012 they are based on croscore fonts.
28+
29+ There are three sets: Sans (a substitute for Arial, Albany, Helvetica,
30+ Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times
31+ New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono
32+ (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and
33+ Bitstream Vera Sans Mono).
34+ '';
35+
36+ license = licenses.ofl;
37+ homepage = https://fedorahosted.org/liberation-fonts/;
38+ maintainers = [
39+ maintainers.raskin
40+ ];
41+ platforms = platforms.unix;
42+ };
43+ };
44+
45+in {
46+ liberation_ttf_v1_from_source = common rec {
47+ version = "1.07.4";
48+ url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-${version}.tar.gz";
49+ sha256 = "01jlg88q2s6by7qv6fmnrlx0lwjarrjrpxv811zjz6f2im4vg65d";
50+ buildInputs = [ fontforge pythonPackages.fonttools python ];
51+ };
52+ liberation_ttf_v1_binary = common rec {
53+ version = "1.07.4";
54+ url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-${version}.tar.gz";
55+ sha256 = "0p7frz29pmjlk2d0j2zs5kfspygwdnpzxkb2hwzcfhrafjvf59v1";
56+ buildInputs = [ ];
57+ };
58+ liberation_ttf_v2_from_source = common rec {
59+ version = "2.00.1";
60+ url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-${version}.tar.gz";
861 sha256 = "1ymryvd2nw4jmw4w5y1i3ll2dn48rpkqzlsgv7994lk6qc9cdjvs";
62+ buildInputs = [ fontforge pythonPackages.fonttools python ];
963 };
10−
11− buildInputs = [ fontforge pythonPackages.fonttools python ];
12−
13− installPhase = ''
14− mkdir -p $out/share/fonts/truetype
15− cp -v $(find . -name '*.ttf') $out/share/fonts/truetype
16−
17− mkdir -p "$out/doc/${name}"
18− cp -v AUTHORS ChangeLog COPYING License.txt README "$out/doc/${name}" || true
19− '';
20−
21− meta = with stdenv.lib; {
22− description = "Liberation Fonts, replacements for Times New Roman, Arial, and Courier New";
23− longDescription = ''
24− The Liberation Fonts are intended to be replacements for the three most
25− commonly used fonts on Microsoft systems: Times New Roman, Arial, and
26− Courier New. Since 2012 they are based on croscore fonts.
27−
28− There are three sets: Sans (a substitute for Arial, Albany, Helvetica,
29− Nimbus Sans L, and Bitstream Vera Sans), Serif (a substitute for Times
30− New Roman, Thorndale, Nimbus Roman, and Bitstream Vera Serif) and Mono
31− (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, and
32− Bitstream Vera Sans Mono).
33− '';
34−
35− license = licenses.ofl;
36− homepage = https://fedorahosted.org/liberation-fonts/;
37− maintainers = [
38− maintainers.raskin
39− ];
40− platforms = platforms.unix;
64+ liberation_ttf_v2_binary = common rec {
65+ version = "2.00.1";
66+ url = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-${version}.tar.gz";
67+ sha256 = "010m4zfqan4w04b6bs9pm3gapn9hsb18bmwwgp2p6y6idj52g43q";
68+ buildInputs = [ ];
4169 };
42−}
70+}
pkgs/servers/x11/xquartz/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, lib, buildEnv, makeFontsConf, gnused, writeScript, xorg, bashInteractive, substituteAll, xterm, makeWrapper, ruby
22, openssl, quartz-wm, fontconfig, xlsfonts, xfontsel
3−, ttf_bitstream_vera, freefont_ttf, liberation_ttf_binary
3+, ttf_bitstream_vera, freefont_ttf, liberation_ttf
44, shell ? "${bashInteractive}/bin/bash"
55}:
66
@@ -64,7 +64,7 @@ let
6464 xorg.fontbhlucidatypewriter75dpi
6565 ttf_bitstream_vera
6666 freefont_ttf
67− liberation_ttf_binary
67+ liberation_ttf
6868 xorg.fontbh100dpi
6969 xorg.fontmiscmisc
7070 xorg.fontcursormisc
pkgs/top-level/all-packages.nix+6−3
@@ -12126,9 +12126,12 @@ with pkgs;
1212612126
1212712127 league-of-moveable-type = callPackage ../data/fonts/league-of-moveable-type {};
1212812128
12129− liberation_ttf_from_source = callPackage ../data/fonts/redhat-liberation-fonts { };
12130− liberation_ttf_binary = callPackage ../data/fonts/redhat-liberation-fonts/binary.nix { };
12131− liberation_ttf = liberation_ttf_binary;
12129+ inherit (callPackages ../data/fonts/redhat-liberation-fonts { })
12130+ liberation_ttf_v1_from_source
12131+ liberation_ttf_v1_binary
12132+ liberation_ttf_v2_from_source
12133+ liberation_ttf_v2_binary;
12134+ liberation_ttf = liberation_ttf_v2_binary;
1213212135
1213312136 liberationsansnarrow = callPackage ../data/fonts/liberationsansnarrow { };
1213412137 liberationsansnarrow_binary = callPackage ../data/fonts/liberationsansnarrow/binary.nix { };