2015-09-15 10:13:22 +01:00
|
|
|
{ stdenv, makeWrapper, fetchurl, xlibsWrapper, imlib2, libjpeg, libpng
|
2015-01-21 09:28:47 +00:00
|
|
|
, libXinerama, curl, libexif }:
|
2007-03-05 13:44:27 +00:00
|
|
|
|
2013-01-22 13:51:28 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-10-05 19:05:40 +01:00
|
|
|
name = "feh-2.14";
|
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";
|
2015-10-05 19:05:40 +01:00
|
|
|
sha256 = "0j5wxpqccnd0hl74z2vwv25n7qnik1n2mcm2jn0c0z7cjn4wsa9q";
|
2007-03-05 13:44:27 +00:00
|
|
|
};
|
|
|
|
|
2015-10-05 19:05:40 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ xlibsWrapper imlib2 libjpeg libpng libXinerama curl libexif ];
|
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 = ''
|
2014-06-07 13:51:50 +01:00
|
|
|
wrapProgram "$out/bin/feh" --prefix PATH : "${libjpeg}/bin" \
|
|
|
|
--add-flags '--theme=feh'
|
2014-02-16 13:08:48 +00:00
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|