2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libjpeg, libexif, giflib, libtiff, libpng, libwebp, libdrm
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, freetype, fontconfig, which, imagemagick, curl, sane-backends, libXpm
|
2020-04-24 23:36:52 +00:00
|
|
|
, epoxy, poppler, mesa, lirc }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fbida-2.14";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dl.bytesex.org/releases/fbida/${name}.tar.gz";
|
|
|
|
sha256 = "0f242mix20rgsqz1llibhsz4r2pbvx6k32rmky0zjvnbaqaw1dwm";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config which ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
libexif libjpeg libpng giflib freetype fontconfig libtiff libwebp
|
2020-04-24 23:36:52 +00:00
|
|
|
imagemagick curl sane-backends libdrm libXpm epoxy poppler lirc
|
|
|
|
mesa
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [ "prefix=$(out)" "verbose=yes" "STRIP=" "JPEG_VER=62" ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's@ cpp\>@ gcc -E -@' -i GNUmakefile
|
|
|
|
sed -e 's@$(HAVE_LINUX_FB_H)@yes@' -i GNUmakefile
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|