From 486cc09058cb58e9255f8583fa33b1a300acb564 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 55d636b8651c..933b07a5d8b9 100644 --- a/pkgs/applications/search/recoll/default.nix +++ b/pkgs/applications/search/recoll/default.nix @@ -89,11 +89,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" ];