From 6f98561c1a831b5fa4d92e1d12c41d4e70ef96db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 2 Aug 2014 20:21:03 +0200 Subject: [PATCH] qtcreator: install documentation qtcreator displays an error when accessing help, unless we have installed documentation. That seems like a packaging bug to me and is definitely unfriendly (default) behaviour. This change increases the closure size from 56 MiB to 68 MiB. --- pkgs/development/qtcreator/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/qtcreator/default.nix b/pkgs/development/qtcreator/default.nix index 2b0410f0874..fd4483dbd6c 100644 --- a/pkgs/development/qtcreator/default.nix +++ b/pkgs/development/qtcreator/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, qtLib, sdkBuild ? false }: +{ stdenv, fetchurl, qtLib, sdkBuild ? false, withDocumentation ? true }: with stdenv.lib; @@ -36,7 +36,10 @@ stdenv.mkDerivation rec { qmake -spec linux-g++ "QT_PRIVATE_HEADERS=${qtLib}/include" qtcreator.pro ''; - installFlags = "INSTALL_ROOT=$(out)"; + buildFlags = optionalString withDocumentation " docs"; + + installFlags = "INSTALL_ROOT=$(out)" + + optionalString withDocumentation " install_docs"; meta = { description = "Cross-platform IDE tailored to the needs of Qt developers";