recoll: simplify --with{out}-inotify expression

This cleanup commit uses `lib.withFeature` to simplify the
expression for recoll's `--with{out}-inotify` flags.
This commit is contained in:
Adam Joseph 2023-06-07 10:23:46 -07:00 committed by Emery Hemingway
parent 7096fc814b
commit 486cc09058

View file

@ -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" ];