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