1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 12:59:25 +00:00
nixpkgs/pkgs/applications/graphics/feh/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2016-09-09 14:04:36 +01:00
{ stdenv, fetchurl, makeWrapper, xorg, imlib2, libjpeg, libpng
, curl, libexif, perlPackages }:
stdenv.mkDerivation rec {
2016-09-09 13:12:00 +01:00
name = "feh-2.17.1";
src = fetchurl {
url = "http://feh.finalrewind.org/${name}.tar.bz2";
2016-09-09 13:12:00 +01:00
sha256 = "0lyq17kkmjxj3vxpmri56linr1bnfmx5568pgrcjgd3amnj1is59";
};
outputs = [ "out" "doc" ];
2016-09-09 14:04:36 +01:00
nativeBuildInputs = [ makeWrapper xorg.libXt ]
++ stdenv.lib.optionals doCheck [ perlPackages.TestCommand perlPackages.TestHarness ];
2016-09-09 14:04:36 +01:00
buildInputs = [ xorg.libX11 xorg.libXinerama imlib2 libjpeg libpng 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'
'';
2016-05-31 12:48:40 +01:00
checkPhase = ''
PERL5LIB="${perlPackages.TestCommand}/lib/perl5/site_perl" make test
'';
doCheck = true;
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;
};
}