3
0
Fork 0
forked from mirrors/nixpkgs
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 09:28:47 +00:00
, libXinerama, curl, libexif }:
stdenv.mkDerivation rec {
2015-05-26 09:27:18 +01:00
name = "feh-2.13.1";
src = fetchurl {
url = "http://feh.finalrewind.org/${name}.tar.bz2";
2015-05-26 09:27:18 +01:00
sha256 = "1059mflgw8hl398lwy55fj50a98xryvdf23wkpbn4s0z9388hl46";
};
2015-01-21 09:28:47 +00:00
buildInputs = [ makeWrapper x11 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" \
--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 23:39:44 +01:00
platforms = with stdenv.lib.platforms; unix;
};
}