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) [ ] ++ lib.optionals (!withGui) [
"--disable-qtgui" "--disable-qtgui"
"--disable-x11mon" "--disable-x11mon"
] ++ (if stdenv.isLinux then [ ] ++ [
"--with-inotify" (lib.withFeature stdenv.isLinux "inotify")
] else [ ];
"--without-inotify"
]);
env.NIX_CFLAGS_COMPILE = toString [ "-DNIXPKGS" ]; env.NIX_CFLAGS_COMPILE = toString [ "-DNIXPKGS" ];