mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Merge pull request #20743 from Okasu/terminus-font-ttf
terminus-font-ttf: init at 4.40.1
This commit is contained in:
commit
304150f576
@ -324,6 +324,7 @@
|
||||
ocharles = "Oliver Charles <ollie@ocharles.org.uk>";
|
||||
odi = "Oliver Dunkl <oliver.dunkl@gmail.com>";
|
||||
offline = "Jaka Hudoklin <jakahudoklin@gmail.com>";
|
||||
okasu = "Okasu <oka.sux@gmail.com>";
|
||||
olcai = "Erik Timan <dev@timan.info>";
|
||||
olejorgenb = "Ole Jørgen Brønner <olejorgenb@yahoo.no>";
|
||||
orbekk = "KJ Ørbekk <kjetil.orbekk@gmail.com>";
|
||||
|
34
pkgs/data/fonts/terminus-font-ttf/default.nix
Normal file
34
pkgs/data/fonts/terminus-font-ttf/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ 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";
|
||||
};
|
||||
|
||||
buildInputs = [unzip];
|
||||
|
||||
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/COPYING"
|
||||
'';
|
||||
|
||||
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.linux;
|
||||
};
|
||||
}
|
@ -17643,4 +17643,6 @@ in
|
||||
fpm2 = callPackage ../tools/security/fpm2 { };
|
||||
|
||||
simplenote = callPackage ../applications/misc/simplenote { };
|
||||
|
||||
terminus_font_ttf = callPackage ../data/fonts/terminus-font-ttf { };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user