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

34 lines
932 B
Nix
Raw Normal View History

{ stdenv, makeWrapper, fetchurl, xlibsWrapper, imlib2, libjpeg, libpng
2015-01-21 09:28:47 +00:00
, libXinerama, curl, libexif }:
stdenv.mkDerivation rec {
2015-10-05 18:05:40 +00:00
name = "feh-2.14";
src = fetchurl {
url = "http://feh.finalrewind.org/${name}.tar.bz2";
2015-10-05 18:05:40 +00:00
sha256 = "0j5wxpqccnd0hl74z2vwv25n7qnik1n2mcm2jn0c0z7cjn4wsa9q";
};
outputs = [ "out" "doc" ];
2015-10-05 18:05:40 +00:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ xlibsWrapper imlib2 libjpeg libpng libXinerama curl libexif ];
preBuild = ''
2015-01-21 09:28:47 +00:00
makeFlags="PREFIX=$out exif=1"
'';
postInstall = ''
wrapProgram "$out/bin/feh" --prefix PATH : "${libjpeg.bin}/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-07 22:39:44 +00:00
platforms = with stdenv.lib.platforms; unix;
};
}