14ccede479
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/nwnygmha0i26zszsz6vjk4f4kyjx7qxq-feh-2.27/bin/feh passed the binary check. - /nix/store/nwnygmha0i26zszsz6vjk4f4kyjx7qxq-feh-2.27/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.27 with grep in /nix/store/nwnygmha0i26zszsz6vjk4f4kyjx7qxq-feh-2.27 - directory tree listing: https://gist.github.com/e18bcf94ab62852f0967389e4d102bd7 - du listing: https://gist.github.com/c252a1ef6aa364f8139ab9a63911130a
53 lines
1.3 KiB
Nix
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.27";
|
|
|
|
src = fetchurl {
|
|
url = "https://feh.finalrewind.org/${name}.tar.bz2";
|
|
sha256 = "0kn6cka9m76697i495npd60ad64jnfnzv5z6znzyr0vlxx2nhcmg";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|