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

36 lines
973 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchzip }:
2016-11-26 23:09:49 +03:00
stdenvNoCC.mkDerivation rec {
pname = "terminus-font-ttf";
2023-05-14 08:54:41 +03:00
version = "4.49.3";
2016-11-26 23:09:49 +03:00
src = fetchzip {
url = "https://files.ax86.net/terminus-ttf/files/${version}/terminus-ttf-${version}.zip";
2023-05-14 08:54:41 +03:00
hash = "sha256-dK7MH4I1RhsIGzcnRA+7f3P5oi9B63RA+uASVDNtxNI=";
};
installPhase = ''
runHook preInstall
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 23:09:49 +03:00
runHook postInstall
'';
2017-08-10 22:43:49 +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)
'';
homepage = "https://files.ax86.net/terminus-ttf";
2016-11-26 23:09:49 +03:00
license = licenses.ofl;
maintainers = with maintainers; [ ];
2016-11-26 23:09:49 +03:00
};
}