bdfresize: init at 1.5
This commit is contained in:
parent
ab0bd3aff9
commit
d4b3932c44
20
pkgs/tools/misc/bdfresize/default.nix
Normal file
20
pkgs/tools/misc/bdfresize/default.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bdfresize";
|
||||
version = "1.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/${pname}-${version}.tar.gz";
|
||||
hash = "sha256-RAz8BiCgI35GNSwUoHdMqj8wWXWbCiDe/vyU6EkIl6Y=";
|
||||
};
|
||||
|
||||
patches = [ ./remove-malloc-declaration.patch ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to resize BDF fonts";
|
||||
homepage = "http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ malvo ];
|
||||
};
|
||||
}
|
11
pkgs/tools/misc/bdfresize/remove-malloc-declaration.patch
Normal file
11
pkgs/tools/misc/bdfresize/remove-malloc-declaration.patch
Normal file
@ -0,0 +1,11 @@
|
||||
Remove an unneeded declaration of malloc so gcc doesn't complain.
|
||||
--- a/charresize.c
|
||||
+++ b/charresize.c
|
||||
@@ -46,7 +46,6 @@ static int bit[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };
|
||||
void
|
||||
processChar(void)
|
||||
{
|
||||
- char *malloc();
|
||||
char *srcimage;
|
||||
int *dstgray;
|
||||
|
@ -2615,6 +2615,8 @@ with pkgs;
|
||||
|
||||
bdf2sfd = callPackage ../tools/misc/bdf2sfd { };
|
||||
|
||||
bdfresize = callPackage ../tools/misc/bdfresize { };
|
||||
|
||||
bcache-tools = callPackage ../tools/filesystems/bcache-tools { };
|
||||
|
||||
bchunk = callPackage ../tools/cd-dvd/bchunk { };
|
||||
|
Loading…
Reference in New Issue
Block a user