13 , enableAutoreload ? !stdenv.hostPlatform.isDarwin
16 stdenv.mkDerivation (finalAttrs: {
20 src = fetchFromGitHub {
23 rev = finalAttrs.version;
24 hash = "sha256-FtaFoLjI3HTLAxRTucp5VDYS73UuWqw9r9UWKK6T+og=";
27 outputs = [ "out" "man" "doc" ];
29 nativeBuildInputs = [ makeWrapper ];
31 buildInputs = [ xorg.libXt xorg.libX11 xorg.libXinerama imlib2 libjpeg libpng curl libexif ];
34 "PREFIX=${placeholder "out"}"
36 ] ++ lib.optional stdenv.hostPlatform.isDarwin "verscmp=0"
37 ++ lib.optional enableAutoreload "inotify=1";
39 installTargets = [ "install" ];
41 wrapProgram "$out/bin/feh" --prefix PATH : "${lib.makeBinPath [ libjpeg jpegexiforient ]}" \
42 --add-flags '--theme=feh'
45 nativeCheckInputs = lib.singleton (perl.withPackages (p: [ p.TestCommand ]));
49 description = "Light-weight image viewer";
50 homepage = "https://feh.finalrewind.org/";
51 # released under a variant of the MIT license
52 # https://spdx.org/licenses/MIT-feh.html
53 license = licenses.mit-feh;
54 maintainers = with maintainers; [ gepbird globin willibutz ];
55 platforms = platforms.unix;