about summary refs log tree commit diff
path: root/pkgs/applications/search
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-06-07 10:23:46 -0700
committerEmery Hemingway <ehmry@posteo.net>2023-06-17 10:39:28 +0100
commit486cc09058cb58e9255f8583fa33b1a300acb564 (patch)
tree697ed834cf535765ba2666f28cdf78fc80ebc334 /pkgs/applications/search
parent7096fc814bc533148bbf4e6df970c7470850d8de (diff)
recoll: simplify --with{out}-inotify expression
This cleanup commit uses `lib.withFeature` to simplify the
expression for recoll's `--with{out}-inotify` flags.
Diffstat (limited to 'pkgs/applications/search')
-rw-r--r--pkgs/applications/search/recoll/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/applications/search/recoll/default.nix b/pkgs/applications/search/recoll/default.nix
index 55d636b8651cd..933b07a5d8b9d 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" ];