nixpkgs/pkgs/data/fonts/terminus-font-ttf/default.nix

35 lines
1,018 B
Nix
Raw Normal View History

2016-11-26 21:09:49 +01:00
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "terminus-font-ttf-${version}";
version = "4.40.1";
src = fetchurl {
url = "http://files.ax86.net/terminus-ttf/files/${version}/terminus-ttf-${version}.zip";
sha256 = "c3cb690c2935123035a0b1f3bfdd9511c282dab489cd423e161a47c592edf188";
};
nativeBuildInputs = [ unzip ];
2016-11-26 21:09:49 +01:00
installPhase = ''
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 21:09:49 +01: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 21:09:49 +01:00
};
}