2017-09-21 16:59:38 +01:00
|
|
|
{ stdenv, fetchurl, autoconf, automake, pkgconfig
|
|
|
|
, perl, flex, bison, readline, libexif
|
|
|
|
, x11Support ? true, SDL
|
2020-05-05 12:14:00 +01:00
|
|
|
, svgSupport ? true, inkscape_0
|
2017-09-21 16:59:38 +01:00
|
|
|
, asciiArtSupport ? true, aalib
|
|
|
|
, gifSupport ? true, giflib
|
|
|
|
, tiffSupport ? true, libtiff
|
|
|
|
, jpegSupport ? true, libjpeg
|
|
|
|
, pngSupport ? true, libpng
|
2017-09-21 14:55:22 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fim";
|
2018-02-04 15:15:18 +00:00
|
|
|
version = "0.6";
|
2017-09-21 14:55:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://savannah/fbi-improved/${pname}-${version}-trunk.tar.gz";
|
2018-02-04 15:15:18 +00:00
|
|
|
sha256 = "124b7c4flx5ygmy5sqq0gpvxqzafnknbcj6f45ddnbdxik9lazzp";
|
2017-09-21 14:55:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace doc/vim2html.pl \
|
|
|
|
--replace /usr/bin/perl ${perl}/bin/perl
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf automake pkgconfig ];
|
|
|
|
|
2017-09-21 16:59:38 +01:00
|
|
|
buildInputs = with stdenv.lib;
|
|
|
|
[ perl flex bison readline libexif ]
|
|
|
|
++ optional x11Support SDL
|
2020-05-05 12:14:00 +01:00
|
|
|
++ optional svgSupport inkscape_0
|
2017-09-21 16:59:38 +01:00
|
|
|
++ optional asciiArtSupport aalib
|
|
|
|
++ optional gifSupport giflib
|
|
|
|
++ optional tiffSupport libtiff
|
|
|
|
++ optional jpegSupport libjpeg
|
|
|
|
++ optional pngSupport libpng;
|
|
|
|
|
2019-10-30 01:29:30 +00:00
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString x11Support "-lSDL";
|
2017-09-21 14:55:22 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A lightweight, highly customizable and scriptable image viewer";
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.nongnu.org/fbi-improved/";
|
2017-09-21 14:55:22 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|