feh: add enableAutoreload option

This change enables the inotify-based auto-reload feature of feh, which
causes images to be refreshed when the image file changes.
This commit is contained in:
Andy Tockman 2020-06-16 19:48:50 -05:00
parent 80462c3884
commit 612b7f71a0

View File

@ -1,6 +1,7 @@
{ stdenv, fetchurl, makeWrapper { stdenv, fetchurl, makeWrapper
, xorg, imlib2, libjpeg, libpng , xorg, imlib2, libjpeg, libpng
, curl, libexif, jpegexiforient, perlPackages }: , curl, libexif, jpegexiforient, perlPackages
, enableAutoreload ? true }:
with stdenv.lib; with stdenv.lib;
@ -21,7 +22,8 @@ stdenv.mkDerivation rec {
makeFlags = [ makeFlags = [
"PREFIX=${placeholder "out"}" "exif=1" "PREFIX=${placeholder "out"}" "exif=1"
] ++ optional stdenv.isDarwin "verscmp=0"; ] ++ optional stdenv.isDarwin "verscmp=0"
++ optional enableAutoreload "inotify=1";
installTargets = [ "install" ]; installTargets = [ "install" ];
postInstall = '' postInstall = ''