diff options
author | Andy Tockman <andy@tck.mn> | 2020-06-16 19:48:50 -0500 |
---|---|---|
committer | Andy Tockman <andy@tck.mn> | 2020-06-16 19:48:50 -0500 |
commit | 612b7f71a0af7d665a289dfdbdfa6bcd50c2694b (patch) | |
tree | e388d440817c2e810665b6102542888bd2e581aa /pkgs/applications/graphics/feh | |
parent | 80462c38848ef8010768b8699d2928eb289cbde3 (diff) |
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.
Diffstat (limited to 'pkgs/applications/graphics/feh')
-rw-r--r-- | pkgs/applications/graphics/feh/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/graphics/feh/default.nix b/pkgs/applications/graphics/feh/default.nix index cecd2a3776d37..4782d9201480d 100644 --- a/pkgs/applications/graphics/feh/default.nix +++ b/pkgs/applications/graphics/feh/default.nix @@ -1,6 +1,7 @@ { stdenv, fetchurl, makeWrapper , xorg, imlib2, libjpeg, libpng -, curl, libexif, jpegexiforient, perlPackages }: +, curl, libexif, jpegexiforient, perlPackages +, enableAutoreload ? true }: with stdenv.lib; @@ -21,7 +22,8 @@ stdenv.mkDerivation rec { makeFlags = [ "PREFIX=${placeholder "out"}" "exif=1" - ] ++ optional stdenv.isDarwin "verscmp=0"; + ] ++ optional stdenv.isDarwin "verscmp=0" + ++ optional enableAutoreload "inotify=1"; installTargets = [ "install" ]; postInstall = '' |