2014-06-07 14:45:45 +02:00
|
|
|
{ stdenv, makeWrapper, fetchurl, x11, imlib2, libjpeg, libpng
|
2011-06-15 10:22:15 +02:00
|
|
|
, libXinerama, curl }:
|
2007-03-05 14:44:27 +01:00
|
|
|
|
2013-01-22 14:51:28 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-06-07 14:45:45 +02:00
|
|
|
name = "feh-2.12";
|
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";
|
2014-06-07 14:45:45 +02:00
|
|
|
sha256 = "0ckhidmsms2l5jycp0qf71jzmb3bpbhjq3bcgfpvfvszah7pmq30";
|
2007-03-05 14:44:27 +01:00
|
|
|
};
|
|
|
|
|
2014-06-07 14:45:45 +02:00
|
|
|
buildInputs = [makeWrapper x11 imlib2 libjpeg libpng libXinerama curl];
|
2010-06-03 16:41:41 +02:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlags="PREFIX=$out"
|
|
|
|
'';
|
2007-03-05 14:44:27 +01:00
|
|
|
|
2014-02-16 14:08:48 +01:00
|
|
|
postInstall = ''
|
2014-06-07 14:51:50 +02:00
|
|
|
wrapProgram "$out/bin/feh" --prefix PATH : "${libjpeg}/bin" \
|
|
|
|
--add-flags '--theme=feh'
|
2014-02-16 14:08:48 +01:00
|
|
|
'';
|
|
|
|
|
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/;
|
|
|
|
license = "BSD";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2007-03-05 14:44:27 +01:00
|
|
|
};
|
|
|
|
}
|