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