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

31 lines
873 B
Nix
Raw Normal View History

{ stdenv, makeWrapper, fetchurl, xlibsWrapper, imlib2, libjpeg, libpng
2015-01-21 12:28:47 +03:00
, libXinerama, curl, libexif }:
stdenv.mkDerivation rec {
2015-05-26 11:27:18 +03:00
name = "feh-2.13.1";
src = fetchurl {
url = "http://feh.finalrewind.org/${name}.tar.bz2";
2015-05-26 11:27:18 +03:00
sha256 = "1059mflgw8hl398lwy55fj50a98xryvdf23wkpbn4s0z9388hl46";
};
buildInputs = [ makeWrapper xlibsWrapper imlib2 libjpeg libpng libXinerama curl libexif ];
preBuild = ''
2015-01-21 12:28:47 +03: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 01:39:44 +03:00
platforms = with stdenv.lib.platforms; unix;
};
}