pkgs/top-level/all-packages.nix: allow distcc to be configured via $NIXPKGS_CONFIG

Set distcc = { avahi = true; gtk = true; }; to enable support for the
corresponding libraries.

svn path=/nixpkgs/trunk/; revision=18016
This commit is contained in:
Peter Simons 2009-10-29 11:58:07 +00:00
parent 96a32cffe2
commit 56ab8201f2

View file

@ -2696,8 +2696,10 @@ let
};
distcc = import ../development/tools/misc/distcc {
inherit fetchurl stdenv popt avahi pkgconfig python;
inherit (gtkLibs) gtk;
inherit fetchurl stdenv popt python;
avahi = if getPkgConfig "distcc" "avahi" false then avahi else null;
pkgconfig = if getPkgConfig "distcc" "gtk" false then pkgconfig else null;
gtk = if getPkgConfig "distcc" "gtk" false then gtkLibs.gtk else null;
};
docutils = builderDefsPackage (import ../development/tools/documentation/docutils) {