nixpkgs/pkgs/applications/graphics/feh/default.nix
R. RyanTM 4558ba5b79 feh: 2.26.1 -> 2.26.3
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/feh/versions.

These checks were done:

- built on NixOS
- /nix/store/s9li7cqcph7bvkplpnq8b32gqvn7hm41-feh-2.26.3/bin/feh passed the binary check.
- /nix/store/s9li7cqcph7bvkplpnq8b32gqvn7hm41-feh-2.26.3/bin/.feh-wrapped passed the binary check.
- 2 of 2 passed binary check by having a zero exit code.
- 0 of 2 passed binary check by having the new version present in output.
- found 2.26.3 with grep in /nix/store/s9li7cqcph7bvkplpnq8b32gqvn7hm41-feh-2.26.3
- directory tree listing: https://gist.github.com/8a7c95c1c856e51ed0f4fab74284bffe
- du listing: https://gist.github.com/6e5a4734d20a27553f39cb1b99cb0ac9
2018-05-20 19:56:07 -07:00

53 lines
1.3 KiB
Nix

{ stdenv, fetchurl, makeWrapper
, xorg, imlib2, libjpeg, libpng
, curl, libexif, perlPackages }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "feh-${version}";
version = "2.26.3";
src = fetchurl {
url = "https://feh.finalrewind.org/${name}.tar.bz2";
sha256 = "08aagymgajcvciagwy2zdxhicvdfnjmd2xyx9bqjy7l1n16ydwrz";
};
outputs = [ "out" "man" "doc" ];
nativeBuildInputs = [ makeWrapper xorg.libXt ]
++ optionals doCheck [ perlPackages.TestCommand perlPackages.TestHarness ];
buildInputs = [ xorg.libX11 xorg.libXinerama imlib2 libjpeg libpng curl libexif ];
makeFlags = [
"PREFIX=$(out)" "exif=1"
] ++ optional stdenv.isDarwin "verscmp=0";
postBuild = ''
pushd man
make
popd
'';
postInstall = ''
wrapProgram "$out/bin/feh" --prefix PATH : "${libjpeg.bin}/bin" \
--add-flags '--theme=feh'
install -D -m 644 man/*.1 $out/share/man/man1
'';
checkPhase = ''
PERL5LIB="${perlPackages.TestCommand}/lib/perl5/site_perl" make test
'';
doCheck = true;
meta = {
description = "A light-weight image viewer";
homepage = "https://feh.finalrewind.org/";
license = licenses.mit;
maintainers = [ maintainers.viric maintainers.willibutz ];
platforms = platforms.unix;
};
}