Merge pull request #114156 from malte-v/add-bdfresize

bdfresize: init at 1.5

authored by Sandro and committed by GitHub d30562f0 7d464665

+33
+20
pkgs/tools/misc/bdfresize/default.nix
··· 1 + { lib, stdenv, fetchurl }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "bdfresize"; 5 + version = "1.5"; 6 + 7 + src = fetchurl { 8 + url = "http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/${pname}-${version}.tar.gz"; 9 + hash = "sha256-RAz8BiCgI35GNSwUoHdMqj8wWXWbCiDe/vyU6EkIl6Y="; 10 + }; 11 + 12 + patches = [ ./remove-malloc-declaration.patch ]; 13 + 14 + meta = with lib; { 15 + description = "Tool to resize BDF fonts"; 16 + homepage = "http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/"; 17 + license = licenses.gpl2Only; 18 + maintainers = with maintainers; [ malvo ]; 19 + }; 20 + }
+11
pkgs/tools/misc/bdfresize/remove-malloc-declaration.patch
··· 1 + Remove an unneeded declaration of malloc so gcc doesn't complain. 2 + --- a/charresize.c 3 + +++ b/charresize.c 4 + @@ -46,7 +46,6 @@ static int bit[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 }; 5 + void 6 + processChar(void) 7 + { 8 + - char *malloc(); 9 + char *srcimage; 10 + int *dstgray; 11 +
+2
pkgs/top-level/all-packages.nix
··· 2629 2629 2630 2630 bdf2sfd = callPackage ../tools/misc/bdf2sfd { }; 2631 2631 2632 + bdfresize = callPackage ../tools/misc/bdfresize { }; 2633 + 2632 2634 bcache-tools = callPackage ../tools/filesystems/bcache-tools { }; 2633 2635 2634 2636 bchunk = callPackage ../tools/cd-dvd/bchunk { };