Skip to content

Commit

Permalink
feh: add enableAutoreload option
Browse files Browse the repository at this point in the history
This change enables the inotify-based auto-reload feature of feh, which
causes images to be refreshed when the image file changes.
  • Loading branch information
tckmn committed Jun 17, 2020
1 parent 80462c3 commit 612b7f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 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;

Expand All @@ -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 = ''
Expand Down

0 comments on commit 612b7f7

Please sign in to comment.