_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 }:
|
||||
let
|
||||
version = "2.3.1";
|
||||
in
|
||||
fetchzip {
|
||||
name = "3270font-${version}";
|
||||
{ lib, stdenvNoCC, fetchzip }:
|
||||
|
||||
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 = ''
|
||||
mkdir -p $out/share/fonts/
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||
unzip -j $downloadedFile \*.afm -d $out/share/fonts/type1
|
||||
dontPatch = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
doCheck = false;
|
||||
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; {
|
||||
|
Loading…
Reference in New Issue
Block a user