2019-05-13 01:55:32 +00:00
|
|
|
{ lib, fetchzip }:
|
2016-11-26 20:09:49 +00:00
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
let
|
2021-06-16 00:01:37 +00:00
|
|
|
version = "4.49.1";
|
2019-08-13 21:52:01 +00:00
|
|
|
in fetchzip {
|
2017-08-10 19:43:49 +00:00
|
|
|
name = "terminus-font-ttf-${version}";
|
2016-11-26 20:09:49 +00:00
|
|
|
|
2021-07-31 17:01:50 +00:00
|
|
|
url = "https://files.ax86.net/terminus-ttf/files/${version}/terminus-ttf-${version}.zip";
|
2016-11-26 20:09:49 +00:00
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
postFetch = ''
|
|
|
|
unzip -j $downloadedFile
|
2016-11-26 20:09:49 +00:00
|
|
|
|
|
|
|
for i in *.ttf; do
|
|
|
|
local destname="$(echo "$i" | sed -E 's|-[[:digit:].]+\.ttf$|.ttf|')"
|
|
|
|
install -Dm 644 "$i" "$out/share/fonts/truetype/$destname"
|
|
|
|
done
|
|
|
|
|
2017-07-08 09:38:22 +00:00
|
|
|
install -Dm 644 COPYING "$out/share/doc/terminus-font-ttf/COPYING"
|
2016-11-26 20:09:49 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-16 00:01:37 +00:00
|
|
|
sha256 = "sha256-UaTnCamIRN/3xZsYt5nYzvykXQ3ri94a047sWOJ2RfU=";
|
2017-08-10 19:43:49 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
meta = with lib; {
|
2016-11-26 20:09:49 +00:00
|
|
|
description = "A clean fixed width TTF font";
|
|
|
|
longDescription = ''
|
|
|
|
Monospaced bitmap font designed for long work with computers
|
|
|
|
(TTF version, mainly for Java applications)
|
|
|
|
'';
|
2021-07-31 17:01:50 +00:00
|
|
|
homepage = "https://files.ax86.net/terminus-ttf";
|
2016-11-26 20:09:49 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ okasu ];
|
|
|
|
};
|
|
|
|
}
|