liberation_ttf: v1: 1.07.4 -> 1.07.5 v2: 2.00.1 -> 2.00.4
Upstream moved to github. Using fetchFromGitHub.
This commit is contained in:
parent
b2c6efeaed
commit
0adf200ad5
@ -1,14 +1,18 @@
|
|||||||
{stdenv, fetchurl, fontforge, python2}:
|
{ stdenv, fetchFromGitHub, fontforge, python3 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (python2.pkgs) fonttools;
|
inherit (python3.pkgs) fonttools;
|
||||||
|
|
||||||
common =
|
common =
|
||||||
{version, url, sha256, nativeBuildInputs, postPatch ? null, outputHash}:
|
{ version, repo, sha256, nativeBuildInputs, postPatch ? null, outputHash }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "liberation-fonts-${version}";
|
pname = "liberation-fonts";
|
||||||
src = fetchurl {
|
inherit version;
|
||||||
inherit url sha256;
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "liberationfonts";
|
||||||
|
rev = version;
|
||||||
|
inherit repo sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit nativeBuildInputs postPatch;
|
inherit nativeBuildInputs postPatch;
|
||||||
@ -17,8 +21,8 @@ let
|
|||||||
mkdir -p $out/share/fonts/truetype
|
mkdir -p $out/share/fonts/truetype
|
||||||
cp -v $( find . -name '*.ttf') $out/share/fonts/truetype
|
cp -v $( find . -name '*.ttf') $out/share/fonts/truetype
|
||||||
|
|
||||||
mkdir -p "$out/share/doc/${name}"
|
mkdir -p "$out/share/doc/${pname}-${version}"
|
||||||
cp -v AUTHORS ChangeLog COPYING License.txt README "$out/share/doc/${name}" || true
|
cp -v AUTHORS ChangeLog COPYING License.txt README "$out/share/doc/${pname}-${version}" || true
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputHashAlgo = "sha256";
|
outputHashAlgo = "sha256";
|
||||||
@ -40,7 +44,7 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
license = licenses.ofl;
|
license = licenses.ofl;
|
||||||
homepage = https://pagure.io/liberation-fonts/;
|
homepage = https://github.com/liberationfonts;
|
||||||
maintainers = [
|
maintainers = [
|
||||||
maintainers.raskin
|
maintainers.raskin
|
||||||
];
|
];
|
||||||
@ -50,22 +54,22 @@ let
|
|||||||
|
|
||||||
in {
|
in {
|
||||||
liberation_ttf_v1 = common rec {
|
liberation_ttf_v1 = common rec {
|
||||||
version = "1.07.4";
|
repo = "liberation-1.7-fonts";
|
||||||
url = "https://releases.pagure.org/liberation-fonts/liberation-fonts-${version}.tar.gz";
|
version = "1.07.5";
|
||||||
sha256 = "01jlg88q2s6by7qv6fmnrlx0lwjarrjrpxv811zjz6f2im4vg65d";
|
|
||||||
nativeBuildInputs = [ fontforge ];
|
nativeBuildInputs = [ fontforge ];
|
||||||
outputHash = "1q102rmg4004p74f8m4y8a6iklmnva0q39sq260jsq3lhcfypg7p";
|
sha256 = "1ffl10mf78hx598sy9qr5m6q2b8n3mpnsj73bwixnd4985gsz56v";
|
||||||
|
outputHash = "16jn17p22z2vip58aza2dfg1ri31ki6z3hsnmidfqfi7v8k83vq4";
|
||||||
};
|
};
|
||||||
liberation_ttf_v2 = common rec {
|
liberation_ttf_v2 = common rec {
|
||||||
version = "2.00.1";
|
repo = "liberation-fonts";
|
||||||
url = "https://releases.pagure.org/liberation-fonts/liberation-fonts-${version}.tar.gz";
|
version = "2.00.4";
|
||||||
sha256 = "1ymryvd2nw4jmw4w5y1i3ll2dn48rpkqzlsgv7994lk6qc9cdjvs";
|
|
||||||
nativeBuildInputs = [ fontforge fonttools ];
|
nativeBuildInputs = [ fontforge fonttools ];
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace scripts/setisFixedPitch-fonttools.py --replace \
|
substituteInPlace scripts/setisFixedPitch-fonttools.py --replace \
|
||||||
'font = ttLib.TTFont(fontfile)' \
|
'font = ttLib.TTFont(fontfile)' \
|
||||||
'font = ttLib.TTFont(fontfile, recalcTimestamp=False)'
|
'font = ttLib.TTFont(fontfile, recalcTimestamp=False)'
|
||||||
'';
|
'';
|
||||||
outputHash = "0nldgawm0a6lpn86w4w3rzx01ns3ph09ar1knq1g4jkxc8ci5rqn";
|
sha256 = "14bn1zlhyr4qaz5z2sx4h115pnbd41ix1vky8fxm2lx76xrjjiaa";
|
||||||
|
outputHash = "14c0c5n4vzd5y0hf9jkh48h12kkd8hlg94npbmv41j449g6wv6vn";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user