anchor.diff:      ++ optional jpegSupport libjpeg
       ++ optional pngSupport libpng;
   
  -  NIX_CFLAGS_COMPILE = stdenv.lib.optionalString x11Support "-lSDL";
  +  NIX_CFLAGS_COMPILE = lib.optionalString x11Support "-lSDL";
   
  -  meta = with stdenv.lib; {
  +  meta = with lib; {
       description = "A lightweight, highly customizable and scriptable image viewer";
       longDescription = ''
         FIM (Fbi IMproved) is a lightweight, console based image viewer that aims
  
positive.code: , pngSupport ? true, libpng
  }:
  
  stdenv.mkDerivation rec {
    pname = "fim";
    version = "0.6";
  
  
negative.code: 
    nativeBuildInputs = [ autoconf automake pkgconfig ];
  
    buildInputs = with lib;
      [ perl flex bison readline libexif ]
      ++ optional x11Support SDL
      ++ optional svgSupport inkscape
  