2016-04-04 09:05:01 -07:00
|
|
|
{ stdenv, fetchurl, libjpeg, libexif, libungif, libtiff, libpng, libwebp, libdrm
|
2016-11-27 08:07:01 -08:00
|
|
|
, pkgconfig, freetype, fontconfig, which, imagemagick, curl, sane-backends, libXpm
|
2019-05-28 12:09:34 -07:00
|
|
|
, epoxy, poppler, mesa, lirc }:
|
2009-08-04 00:14:43 -07:00
|
|
|
|
2011-01-16 08:28:08 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2018-07-04 12:48:48 -07:00
|
|
|
name = "fbida-2.14";
|
2019-05-28 12:09:34 -07:00
|
|
|
|
2009-08-04 00:14:43 -07:00
|
|
|
src = fetchurl {
|
2011-01-16 08:28:08 -08:00
|
|
|
url = "http://dl.bytesex.org/releases/fbida/${name}.tar.gz";
|
2018-07-04 12:48:48 -07:00
|
|
|
sha256 = "0f242mix20rgsqz1llibhsz4r2pbvx6k32rmky0zjvnbaqaw1dwm";
|
2009-08-04 00:14:43 -07:00
|
|
|
};
|
|
|
|
|
2012-12-28 10:20:09 -08:00
|
|
|
nativeBuildInputs = [ pkgconfig which ];
|
2018-03-18 15:43:44 -07:00
|
|
|
buildInputs = [
|
|
|
|
libexif libjpeg libpng libungif freetype fontconfig libtiff libwebp
|
|
|
|
imagemagick curl sane-backends libdrm libXpm epoxy poppler lirc
|
2019-05-28 12:09:34 -07:00
|
|
|
mesa
|
2018-03-18 15:43:44 -07:00
|
|
|
];
|
2019-05-28 12:09:34 -07:00
|
|
|
|
2018-07-04 12:48:48 -07:00
|
|
|
makeFlags = [ "prefix=$(out)" "verbose=yes" "STRIP=" "JPEG_VER=62" ];
|
2011-01-16 08:28:08 -08:00
|
|
|
|
2018-07-04 12:48:48 -07:00
|
|
|
patchPhase = ''
|
2012-03-04 00:53:46 -08:00
|
|
|
sed -e 's@ cpp\>@ gcc -E -@' -i GNUmakefile
|
2018-07-04 12:48:48 -07:00
|
|
|
sed -e 's@$(HAVE_LINUX_FB_H)@yes@' -i GNUmakefile
|
|
|
|
'';
|
2012-03-04 00:53:46 -08:00
|
|
|
|
2015-05-31 06:54:28 -07:00
|
|
|
meta = with stdenv.lib; {
|
2019-11-09 11:54:36 -08:00
|
|
|
description = "Image viewing and manipulation programs including fbi, fbgs, ida, exiftran and thumbnail.cgi";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://www.kraxel.org/blog/linux/fbida/";
|
2015-05-31 06:54:28 -07:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2016-11-27 08:07:01 -08:00
|
|
|
platforms = platforms.linux;
|
2009-08-04 00:14:43 -07:00
|
|
|
};
|
|
|
|
}
|