From 68fd5ff3499e824108491df1f79312c0e6b4f6ec Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 7 Jun 2023 10:23:46 -0700 Subject: [PATCH] recoll: simplify --with{out}-inotify expression This cleanup commit uses `lib.withFeature` to simplify the expression for recoll's `--with{out}-inotify` flags. --- pkgs/applications/search/recoll/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/search/recoll/default.nix b/pkgs/applications/search/recoll/default.nix index cccb5680042dcc5..8f853fe55ec6258 100644 --- a/pkgs/applications/search/recoll/default.nix +++ b/pkgs/applications/search/recoll/default.nix @@ -51,11 +51,9 @@ mkDerivation rec { ] ++ lib.optionals (!withGui) [ "--disable-qtgui" "--disable-x11mon" - ] ++ (if stdenv.isLinux then [ - "--with-inotify" - ] else [ - "--without-inotify" - ]); + ] ++ [ + (lib.withFeature stdenv.isLinux "inotify") + ]; env.NIX_CFLAGS_COMPILE = toString [ "-DNIXPKGS" ];