Merge pull request #248865 from Stzx/liberation-fonts
liberation_ttf_v2: 2.1.0 -> 2.1.5
This commit is contained in:
commit
3bab8547ed
|
@ -4,7 +4,7 @@ let
|
||||||
|
|
||||||
commonNativeBuildInputs = [ fontforge python3 ];
|
commonNativeBuildInputs = [ fontforge python3 ];
|
||||||
common =
|
common =
|
||||||
{ version, repo, sha256, nativeBuildInputs, postPatch ? null }:
|
{ version, repo, sha256, docsToInstall, nativeBuildInputs, postPatch ? null }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "liberation-fonts";
|
pname = "liberation-fonts";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -20,11 +20,7 @@ let
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
|
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
|
||||||
|
|
||||||
install -m444 -Dt $out/share/doc/${pname}-${version} AUTHORS || true
|
install -m444 -Dt $out/share/doc/${pname}-${version} ${lib.concatStringsSep " " docsToInstall}
|
||||||
install -m444 -Dt $out/share/doc/${pname}-${version} ChangeLog || true
|
|
||||||
install -m444 -Dt $out/share/doc/${pname}-${version} COPYING || true
|
|
||||||
install -m444 -Dt $out/share/doc/${pname}-${version} License.txt || true
|
|
||||||
install -m444 -Dt $out/share/doc/${pname}-${version} README || true
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -51,18 +47,20 @@ in
|
||||||
liberation_ttf_v1 = common {
|
liberation_ttf_v1 = common {
|
||||||
repo = "liberation-1.7-fonts";
|
repo = "liberation-1.7-fonts";
|
||||||
version = "1.07.5";
|
version = "1.07.5";
|
||||||
nativeBuildInputs = commonNativeBuildInputs ;
|
docsToInstall = [ "AUTHORS" "ChangeLog" "COPYING" "License.txt" "README" ];
|
||||||
|
nativeBuildInputs = commonNativeBuildInputs;
|
||||||
sha256 = "1ffl10mf78hx598sy9qr5m6q2b8n3mpnsj73bwixnd4985gsz56v";
|
sha256 = "1ffl10mf78hx598sy9qr5m6q2b8n3mpnsj73bwixnd4985gsz56v";
|
||||||
};
|
};
|
||||||
liberation_ttf_v2 = common {
|
liberation_ttf_v2 = common {
|
||||||
repo = "liberation-fonts";
|
repo = "liberation-fonts";
|
||||||
version = "2.1.0";
|
version = "2.1.5";
|
||||||
|
docsToInstall = [ "AUTHORS" "ChangeLog" "LICENSE" "README.md" ];
|
||||||
nativeBuildInputs = commonNativeBuildInputs ++ [ fonttools ];
|
nativeBuildInputs = commonNativeBuildInputs ++ [ 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)'
|
||||||
'';
|
'';
|
||||||
sha256 = "03xpzaas264x5n6qisxkhc68pkpn32m7y78qdm3rdkxdwi8mv8mz";
|
sha256 = "Wg1uoD2k/69Wn6XU+7wHqf2KO/bt4y7pwgmG7+IUh4Q=";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue