nixpkgs-suyu/pkgs/data/fonts/3270font/default.nix

28 lines
858 B
Nix
Raw Normal View History

2020-07-18 11:20:00 +02:00
{ lib, fetchzip }:
let
version = "2.3.1";
2020-07-18 11:20:00 +02:00
in
fetchzip {
2020-07-18 11:20:00 +02:00
name = "3270font-${version}";
url = "https://github.com/rbanffy/3270font/releases/download/v${version}/3270_fonts_3b8f2fb.zip";
2020-07-18 11:20:00 +02:00
sha256 = "06n87ydn2ayfhpg8318chmnwmdk3d4mmy65fcgf8frbiv2kpqncs";
2020-07-18 11:20:00 +02: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
unzip -j $downloadedFile \*.afm -d $out/share/fonts/type1
2020-07-18 11:20:00 +02:00
'';
meta = with lib; {
description = "Monospaced font based on IBM 3270 terminals";
homepage = "https://github.com/rbanffy/3270font";
changelog = "https://github.com/rbanffy/3270font/blob/v${version}/CHANGELOG.md";
2020-07-18 11:20:00 +02:00
license = [ licenses.bsd3 licenses.ofl ];
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}