3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/terminus-font-ttf/default.nix

35 lines
961 B
Nix
Raw Normal View History

2017-08-10 20:43:49 +01:00
{ stdenv, fetchzip }:
2016-11-26 20:09:49 +00:00
2017-08-10 20:43:49 +01:00
let
2016-11-26 20:09:49 +00:00
version = "4.40.1";
2017-08-10 20:43:49 +01:00
in fetchzip rec {
name = "terminus-font-ttf-${version}";
2016-11-26 20:09:49 +00:00
2017-08-10 20:43:49 +01:00
url = "http://files.ax86.net/terminus-ttf/files/${version}/terminus-ttf-${version}.zip";
2016-11-26 20:09:49 +00:00
2017-08-10 20:43:49 +01: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
install -Dm 644 COPYING "$out/share/doc/terminus-font-ttf/COPYING"
2016-11-26 20:09:49 +00:00
'';
2017-08-10 20:43:49 +01:00
sha256 = "0cfkpgixdz47y94s9j26pm7n4hvad23vb2q4315kgahl4294zcpg";
2016-11-26 20:09:49 +00:00
meta = with stdenv.lib; {
description = "A clean fixed width TTF font";
longDescription = ''
Monospaced bitmap font designed for long work with computers
(TTF version, mainly for Java applications)
'';
homepage = http://files.ax86.net/terminus-ttf;
license = licenses.ofl;
maintainers = with maintainers; [ okasu ];
platforms = platforms.unix;
2016-11-26 20:09:49 +00:00
};
}