nixpkgs/pkgs/applications/graphics/feh/default.nix

32 lines
898 B
Nix
Raw Normal View History

{ stdenv, makeWrapper, fetchurl, xlibsWrapper, imlib2, libjpeg, libpng
2015-01-21 10:28:47 +01:00
, libXinerama, curl, libexif }:
stdenv.mkDerivation rec {
2015-10-05 20:05:40 +02:00
name = "feh-2.14";
src = fetchurl {
url = "http://feh.finalrewind.org/${name}.tar.bz2";
2015-10-05 20:05:40 +02:00
sha256 = "0j5wxpqccnd0hl74z2vwv25n7qnik1n2mcm2jn0c0z7cjn4wsa9q";
};
2015-10-05 20:05:40 +02:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ xlibsWrapper imlib2 libjpeg libpng libXinerama curl libexif ];
preBuild = ''
2015-01-21 10:28:47 +01:00
makeFlags="PREFIX=$out exif=1"
'';
postInstall = ''
wrapProgram "$out/bin/feh" --prefix PATH : "${libjpeg}/bin" \
--add-flags '--theme=feh'
'';
meta = {
description = "A light-weight image viewer";
homepage = https://derf.homelinux.org/projects/feh/;
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [viric];
2015-04-08 00:39:44 +02:00
platforms = with stdenv.lib.platforms; unix;
};
}