2020-07-18 10:20:00 +01:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
let
|
2021-03-08 04:20:00 +00:00
|
|
|
version = "2.3.0";
|
2020-07-18 10:20:00 +01:00
|
|
|
in
|
2020-09-18 01:00:53 +01:00
|
|
|
fetchzip {
|
2020-07-18 10:20:00 +01:00
|
|
|
name = "3270font-${version}";
|
|
|
|
|
2021-03-08 04:20:00 +00:00
|
|
|
url = "https://github.com/rbanffy/3270font/releases/download/v${version}/3270_fonts_fd00815.zip";
|
2020-07-18 10:20:00 +01:00
|
|
|
|
2021-03-08 04:20:00 +00:00
|
|
|
sha256 = "0ny2jcsfa1kfzkm979dfzqv756ijm5xirm02ln7a4kwhxxsm5xr1";
|
2020-07-18 10:20:00 +01:00
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts/
|
|
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
2021-01-16 19:44:00 +00:00
|
|
|
unzip -j $downloadedFile \*.afm -d $out/share/fonts/type1
|
2020-07-18 10:20:00 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Monospaced font based on IBM 3270 terminals";
|
|
|
|
homepage = "https://github.com/rbanffy/3270font";
|
2021-01-16 19:44:00 +00:00
|
|
|
changelog = "https://github.com/rbanffy/3270font/blob/v${version}/CHANGELOG.md";
|
2020-07-18 10:20:00 +01:00
|
|
|
license = [ licenses.bsd3 licenses.ofl ];
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|