1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
{ lib
, stdenv
, fetchurl
, libjpeg
, libexif
, giflib
, libtiff
, libpng
, libwebp
, libdrm
, pkg-config
, freetype
, fontconfig
, which
, imagemagick
, curl
, sane-backends
, libXpm
, epoxy
, poppler
, mesa
, lirc
}:
stdenv.mkDerivation rec {
pname = "fbida";
version = "2.14";
src = fetchurl {
url = "http://dl.bytesex.org/releases/fbida/fbida-${version}.tar.gz";
sha256 = "0f242mix20rgsqz1llibhsz4r2pbvx6k32rmky0zjvnbaqaw1dwm";
};
patches = [
# Upstream patch to fix build on -fno-common toolchains.
(fetchurl {
name = "no-common.patch";
url = "https://git.kraxel.org/cgit/fbida/patch/?id=1bb8a8aa29845378903f3c690e17c0867c820da2";
sha256 = "0n5vqbp8wd87q60zfwdf22jirggzngypc02ha34gsj1rd6pvwahi";
})
];
nativeBuildInputs = [ pkg-config which ];
buildInputs = [
libexif
libjpeg
libpng
giflib
freetype
fontconfig
libtiff
libwebp
imagemagick
curl
sane-backends
libdrm
libXpm
epoxy
poppler
lirc
mesa
];
makeFlags = [ "prefix=$(out)" "verbose=yes" "STRIP=" "JPEG_VER=62" ];
postPatch = ''
sed -e 's@ cpp\>@ gcc -E -@' -i GNUmakefile
sed -e 's@$(HAVE_LINUX_FB_H)@yes@' -i GNUmakefile
'';
meta = with lib; {
description = "Image viewing and manipulation programs including fbi, fbgs, ida, exiftran and thumbnail.cgi";
homepage = "https://www.kraxel.org/blog/linux/fbida/";
license = licenses.gpl2;
maintainers = with maintainers; [ pSub ];
platforms = platforms.linux;
};
}
|