2021-02-05 17:12:51 +00:00
|
|
|
{ gcc9Stdenv, fetchurl, autoconf, automake, pkg-config, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, perl, flex, bison, readline, libexif
|
|
|
|
, x11Support ? true, SDL
|
2020-09-25 04:45:31 +00:00
|
|
|
, svgSupport ? true, inkscape
|
2020-04-24 23:36:52 +00:00
|
|
|
, asciiArtSupport ? true, aalib
|
|
|
|
, gifSupport ? true, giflib
|
|
|
|
, tiffSupport ? true, libtiff
|
|
|
|
, jpegSupport ? true, libjpeg
|
|
|
|
, pngSupport ? true, libpng
|
|
|
|
}:
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
gcc9Stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "fim";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://savannah/fbi-improved/${pname}-${version}-trunk.tar.gz";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-/p7bjeZM46DJOQ9sgtebhkNpBPj2RJYY3dMXhzHnNmg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace doc/vim2html.pl \
|
|
|
|
--replace /usr/bin/perl ${perl}/bin/perl
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
buildInputs =
|
2020-04-24 23:36:52 +00:00
|
|
|
[ perl flex bison readline libexif ]
|
2024-09-19 14:19:46 +00:00
|
|
|
++ lib.optional x11Support SDL
|
|
|
|
++ lib.optional svgSupport inkscape
|
|
|
|
++ lib.optional asciiArtSupport aalib
|
|
|
|
++ lib.optional gifSupport giflib
|
|
|
|
++ lib.optional tiffSupport libtiff
|
|
|
|
++ lib.optional jpegSupport libjpeg
|
|
|
|
++ lib.optional pngSupport libpng;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString x11Support "-lSDL";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Lightweight, highly customizable and scriptable image viewer";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
FIM (Fbi IMproved) is a lightweight, console based image viewer that aims
|
|
|
|
to be a highly customizable and scriptable for users who are comfortable
|
|
|
|
with software like the VIM text editor or the Mutt mail user agent.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.nongnu.org/fbi-improved/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|