2016-09-09 14:04:36 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, xorg, imlib2, libjpeg, libpng
|
|
|
|
, curl, libexif, perlPackages }:
|
2007-03-05 13:44:27 +00:00
|
|
|
|
2013-01-22 13:51:28 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-09-09 13:12:00 +01:00
|
|
|
name = "feh-2.17.1";
|
2007-03-05 13:44:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-01-22 13:51:28 +00:00
|
|
|
url = "http://feh.finalrewind.org/${name}.tar.bz2";
|
2016-09-09 13:12:00 +01:00
|
|
|
sha256 = "0lyq17kkmjxj3vxpmri56linr1bnfmx5568pgrcjgd3amnj1is59";
|
2007-03-05 13:44:27 +00:00
|
|
|
};
|
|
|
|
|
2015-10-11 20:38:03 +01:00
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
2016-09-09 14:04:36 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper xorg.libXt ]
|
2016-10-01 21:38:06 +01:00
|
|
|
++ stdenv.lib.optionals doCheck [ perlPackages.TestCommand perlPackages.TestHarness ];
|
2010-06-03 15:41:41 +01:00
|
|
|
|
2016-09-09 14:04:36 +01:00
|
|
|
buildInputs = [ xorg.libX11 xorg.libXinerama imlib2 libjpeg libpng curl libexif ];
|
2016-09-09 13:16:34 +01:00
|
|
|
|
2010-06-03 15:41:41 +01:00
|
|
|
preBuild = ''
|
2015-01-21 09:28:47 +00:00
|
|
|
makeFlags="PREFIX=$out exif=1"
|
2010-06-03 15:41:41 +01:00
|
|
|
'';
|
2007-03-05 13:44:27 +00:00
|
|
|
|
2014-02-16 13:08:48 +00:00
|
|
|
postInstall = ''
|
2015-10-11 20:38:03 +01:00
|
|
|
wrapProgram "$out/bin/feh" --prefix PATH : "${libjpeg.bin}/bin" \
|
2014-06-07 13:51:50 +01:00
|
|
|
--add-flags '--theme=feh'
|
2014-02-16 13:08:48 +00:00
|
|
|
'';
|
|
|
|
|
2016-05-31 12:48:40 +01:00
|
|
|
checkPhase = ''
|
|
|
|
PERL5LIB="${perlPackages.TestCommand}/lib/perl5/site_perl" make test
|
|
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
|
2007-03-05 13:44:27 +00:00
|
|
|
meta = {
|
|
|
|
description = "A light-weight image viewer";
|
2010-06-03 15:41:41 +01:00
|
|
|
homepage = https://derf.homelinux.org/projects/feh/;
|
2014-12-20 23:00:35 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2010-06-03 15:41:41 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2015-04-07 23:39:44 +01:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2007-03-05 13:44:27 +00:00
|
|
|
};
|
|
|
|
}
|