nixpkgs/pkgs/by-name/te/terminus_font_ttf/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
960 B
Nix
Raw Normal View History

{
lib,
stdenvNoCC,
fetchzip,
}:
2016-11-26 20:09:49 +00:00
stdenvNoCC.mkDerivation rec {
pname = "terminus-font-ttf";
2023-05-14 05:54:41 +00:00
version = "4.49.3";
2016-11-26 20:09:49 +00:00
src = fetchzip {
url = "https://files.ax86.net/terminus-ttf/files/${version}/terminus-ttf-${version}.zip";
2023-05-14 05:54:41 +00: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 20:09:49 +00:00
runHook postInstall
'';
2017-08-10 19:43:49 +00:00
meta = with lib; {
2016-11-26 20:09:49 +00:00
description = "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 20:09:49 +00:00
license = licenses.ofl;
maintainers = [ ];
2016-11-26 20:09:49 +00:00
};
}