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
1 changed files with 3 additions and 5 deletions
|
@ -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" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue