2019-05-13 04:55:32 +03:00
|
|
|
{ lib, fetchzip }:
|
2016-11-26 23:09:49 +03:00
|
|
|
|
2017-08-10 22:43:49 +03:00
|
|
|
let
|
2019-03-22 01:12:04 +03:00
|
|
|
version = "4.47.0";
|
2019-08-14 00:52:01 +03:00
|
|
|
in fetchzip {
|
2017-08-10 22:43:49 +03:00
|
|
|
name = "terminus-font-ttf-${version}";
|
2016-11-26 23:09:49 +03:00
|
|
|
|
2017-08-10 22:43:49 +03:00
|
|
|
url = "http://files.ax86.net/terminus-ttf/files/${version}/terminus-ttf-${version}.zip";
|
2016-11-26 23:09:49 +03:00
|
|
|
|
2017-08-10 22:43:49 +03:00
|
|
|
postFetch = ''
|
|
|
|
unzip -j $downloadedFile
|
2016-11-26 23:09:49 +03: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 12:38:22 +03:00
|
|
|
install -Dm 644 COPYING "$out/share/doc/terminus-font-ttf/COPYING"
|
2016-11-26 23:09:49 +03:00
|
|
|
'';
|
|
|
|
|
2019-03-22 01:12:04 +03:00
|
|
|
sha256 = "1mnx3vlnl0r15yzsa4zb9qqab4hpi603gdwhlbw960wg03i3xn8z";
|
2017-08-10 22:43:49 +03:00
|
|
|
|
2019-05-13 04:55:32 +03:00
|
|
|
meta = with lib; {
|
2016-11-26 23:09:49 +03:00
|
|
|
description = "A clean fixed width TTF font";
|
|
|
|
longDescription = ''
|
|
|
|
Monospaced bitmap font designed for long work with computers
|
|
|
|
(TTF version, mainly for Java applications)
|
|
|
|
'';
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "http://files.ax86.net/terminus-ttf";
|
2016-11-26 23:09:49 +03:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ okasu ];
|
|
|
|
};
|
|
|
|
}
|