1{
2 lib,
3 stdenv,
4 fetchzip,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "bdfresize";
9 version = "1.5";
10
11 src = fetchzip {
12 url = "http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/bdfresize-${version}.tar.gz";
13 hash = "sha256-C4ZLJIn6vVeVUCpNwMu0vdfQQ3qUz4EVIcPob9NejP0=";
14 };
15
16 patches = [
17 ./fix-configure.patch
18 ./remove-malloc-declaration.patch
19 ];
20
21 # Fix compilation of getopt; see getopt package for more details
22 env.NIX_CFLAGS_COMPILE = "-D__GNU_LIBRARY__";
23
24 meta = with lib; {
25 description = "Tool to resize BDF fonts";
26 homepage = "http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/";
27 license = licenses.gpl2Only;
28 maintainers = with maintainers; [ malte-v ];
29 mainProgram = "bdfresize";
30 };
31}