From 0c6e22adbab989b6e9f25edb9baf3267664112ff Mon Sep 17 00:00:00 2001 From: bbenoist Date: Fri, 31 May 2013 23:42:44 +0200 Subject: [PATCH] qt: make docs, demos and examples optionnaly available As the only option before was to don't include them at all. --- pkgs/development/libraries/qt-4.x/4.8/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/qt-4.x/4.8/default.nix b/pkgs/development/libraries/qt-4.x/4.8/default.nix index 60d59030c1f3..ade9a67cbcc4 100644 --- a/pkgs/development/libraries/qt-4.x/4.8/default.nix +++ b/pkgs/development/libraries/qt-4.x/4.8/default.nix @@ -10,6 +10,9 @@ , flashplayerFix ? false, gdk_pixbuf , gtkStyle ? false, libgnomeui, gtk, GConf, gnome_vfs , developerBuild ? false +, docs ? false +, examples ? false +, demos ? false }: with stdenv.lib; @@ -72,7 +75,9 @@ stdenv.mkDerivation rec { -exceptions -xmlpatterns -make libs -make tools -make translations - -nomake demos -nomake examples -nomake docs + -${if demos then "" else "no"}make demos + -${if examples then "" else "no"}make examples + -${if docs then "" else "no"}make docs -no-phonon ${if buildWebkit then "" else "-no"}-webkit ${if buildMultimedia then "" else "-no"}-multimedia -audio-backend ${if developerBuild then "-developer-build" else ""}