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

31 lines
855 B
Nix
Raw Normal View History

{ stdenv, makeWrapper, fetchurl, x11, imlib2, libjpeg, libpng
2015-01-21 10:28:47 +01:00
, libXinerama, curl, libexif }:
stdenv.mkDerivation rec {
2015-05-26 10:27:18 +02:00
name = "feh-2.13.1";
src = fetchurl {
url = "http://feh.finalrewind.org/${name}.tar.bz2";
2015-05-26 10:27:18 +02:00
sha256 = "1059mflgw8hl398lwy55fj50a98xryvdf23wkpbn4s0z9388hl46";
};
2015-01-21 10:28:47 +01:00
buildInputs = [ makeWrapper x11 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;
};
}