_3270font: 2.3.1 -> 3.0.1
https://github.com/rbanffy/3270font/releases/tag/v3.0.0 https://github.com/rbanffy/3270font/releases/tag/v3.0.1
This commit is contained in:
parent
29b2098551
commit
f072ce1373
|
@ -1,19 +1,28 @@
|
||||||
{ lib, fetchzip }:
|
{ lib, stdenvNoCC, fetchzip }:
|
||||||
let
|
|
||||||
version = "2.3.1";
|
|
||||||
in
|
|
||||||
fetchzip {
|
|
||||||
name = "3270font-${version}";
|
|
||||||
|
|
||||||
url = "https://github.com/rbanffy/3270font/releases/download/v${version}/3270_fonts_3b8f2fb.zip";
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
pname = "3270font";
|
||||||
|
version = "3.0.1";
|
||||||
|
|
||||||
sha256 = "06n87ydn2ayfhpg8318chmnwmdk3d4mmy65fcgf8frbiv2kpqncs";
|
src = fetchzip {
|
||||||
|
url = "https://github.com/rbanffy/3270font/releases/download/v${version}/3270_fonts_d916271.zip";
|
||||||
|
sha256 = "sha256-Zi6Lp5+sqfjIaHmnaaemaw3i+hXq9mqIsK/81lTkwfM=";
|
||||||
|
stripRoot = false;
|
||||||
|
};
|
||||||
|
|
||||||
postFetch = ''
|
dontPatch = true;
|
||||||
mkdir -p $out/share/fonts/
|
dontConfigure = true;
|
||||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
dontBuild = true;
|
||||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
doCheck = false;
|
||||||
unzip -j $downloadedFile \*.afm -d $out/share/fonts/type1
|
dontFixup = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -Dm644 -t $out/share/fonts/opentype/ *.otf
|
||||||
|
install -Dm644 -t $out/share/fonts/truetype/ *.ttf
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue