Skip to content

Commit

Permalink
recoll: simplify --with{out}-inotify expression
Browse files Browse the repository at this point in the history
This cleanup commit uses `lib.withFeature` to simplify the
expression for recoll's `--with{out}-inotify` flags.
  • Loading branch information
Adam Joseph authored and ehmry committed Jun 17, 2023
1 parent 7096fc8 commit 486cc09
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkgs/applications/search/recoll/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];

Expand Down

0 comments on commit 486cc09

Please sign in to comment.