forked from mirrors/nixpkgs
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:
parent
7096fc814b
commit
486cc09058
|
@ -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" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue