pkgs/top-level/all-packages.nix: prefer makeOverridable over getPkgConfig to customize distcc
Changed 'distcc' expression to allow for argument overriding instead of relying on getPkgConfig. svn path=/nixpkgs/trunk/; revision=21866
This commit is contained in:
parent
7f0dc973f4
commit
2508c95763
@ -3095,13 +3095,10 @@ let
|
|||||||
inherit (xlibs) libX11 libXt;
|
inherit (xlibs) libX11 libXt;
|
||||||
};
|
};
|
||||||
|
|
||||||
distcc = import ../development/tools/misc/distcc {
|
distcc = makeOverridable (import ../development/tools/misc/distcc) {
|
||||||
inherit fetchurl stdenv popt;
|
inherit fetchurl stdenv popt python avahi pkgconfig;
|
||||||
python = if getPkgConfig "distcc" "python" true then python else null;
|
inherit (gtkLibs) gtk;
|
||||||
avahi = if getPkgConfig "distcc" "avahi" false then avahi else null;
|
static = false;
|
||||||
pkgconfig = if getPkgConfig "distcc" "gtk" false then pkgconfig else null;
|
|
||||||
gtk = if getPkgConfig "distcc" "gtk" false then gtkLibs.gtk else null;
|
|
||||||
static = getPkgConfig "distcc" "static" false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
docutils = builderDefsPackage (import ../development/tools/documentation/docutils) {
|
docutils = builderDefsPackage (import ../development/tools/documentation/docutils) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user