From 202588714c719d56acbc2a74109ebae87ab0e66b Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 24 Dec 2023 11:52:51 +0200 Subject: libreoffice-unwrapped: fix default --with-help build value Previously, only if `withHelp` was `false`, we added the `./configure` flag `--without-help`, but apparently `--without-help` does nothing, as not building help is the default behavior. Using `lib.withFeature` gives the most expected behavior no matter what are the defaults. Quoting from `./configure --help` for reference: > --with-help Enable the build of help. There is a special > parameter "common" that can be used to bundle only > the common part, .e.g help-specific icons. This is > useful when you build the helpcontent separately. > > Usage: --with-help build the old local help > --without-help no local help (default) > --with-help=html build the new HTML local help > --with-help=online build the new HTML online help This commit fixes #276400. --- pkgs/applications/office/libreoffice/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/office/libreoffice/default.nix b/pkgs/applications/office/libreoffice/default.nix index e49f4be07b2f..9f4390621d10 100644 --- a/pkgs/applications/office/libreoffice/default.nix +++ b/pkgs/applications/office/libreoffice/default.nix @@ -415,7 +415,7 @@ in stdenv.mkDerivation (finalAttrs: { dontWrapQtApps = true; configureFlags = [ - (lib.optionalString (!withHelp) "--without-help") + (lib.withFeature withHelp "help") "--with-boost=${getDev boost}" "--with-boost-libdir=${getLib boost}/lib" "--with-beanshell-jar=${bsh}" -- cgit 1.4.1