forked from mirrors/nixpkgs
fim: Add X11 support and "USE flags"
This commit is contained in:
parent
31b7bc4c1e
commit
a127f91f28
|
@ -1,7 +1,12 @@
|
||||||
{ stdenv, fetchurl, autoconf, automake, pkgconfig, perl
|
{ stdenv, fetchurl, autoconf, automake, pkgconfig
|
||||||
, flex, bison, readline
|
, perl, flex, bison, readline, libexif
|
||||||
, giflib, libtiff, libexif, libpng, libjpeg, jasper
|
, x11Support ? true, SDL
|
||||||
, aalib, inkscape#, SDL, fig2dev, jasper # TODO
|
, svgSupport ? true, inkscape
|
||||||
|
, asciiArtSupport ? true, aalib
|
||||||
|
, gifSupport ? true, giflib
|
||||||
|
, tiffSupport ? true, libtiff
|
||||||
|
, jpegSupport ? true, libjpeg
|
||||||
|
, pngSupport ? true, libpng
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -20,10 +25,17 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ autoconf automake pkgconfig ];
|
nativeBuildInputs = [ autoconf automake pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = with stdenv.lib;
|
||||||
perl flex bison readline
|
[ perl flex bison readline libexif ]
|
||||||
giflib libtiff libexif libpng libjpeg jasper aalib inkscape
|
++ optional x11Support SDL
|
||||||
];
|
++ optional svgSupport inkscape
|
||||||
|
++ optional asciiArtSupport aalib
|
||||||
|
++ optional gifSupport giflib
|
||||||
|
++ optional tiffSupport libtiff
|
||||||
|
++ optional jpegSupport libjpeg
|
||||||
|
++ optional pngSupport libpng;
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = stdenv.lib.optional x11Support "-lSDL";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A lightweight, highly customizable and scriptable image viewer";
|
description = "A lightweight, highly customizable and scriptable image viewer";
|
||||||
|
|
|
@ -2014,8 +2014,7 @@ with pkgs;
|
||||||
|
|
||||||
fdk_aac = callPackage ../development/libraries/fdk-aac { };
|
fdk_aac = callPackage ../development/libraries/fdk-aac { };
|
||||||
|
|
||||||
# WIP: fim
|
fim = callPackage ../tools/graphics/fim { };
|
||||||
fimFull = callPackage ../tools/graphics/fim { };
|
|
||||||
|
|
||||||
flac123 = callPackage ../applications/audio/flac123 { };
|
flac123 = callPackage ../applications/audio/flac123 { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue