mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
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;
|
||||
};
|
||||
|
||||
distcc = import ../development/tools/misc/distcc {
|
||||
inherit fetchurl stdenv popt;
|
||||
python = if getPkgConfig "distcc" "python" true then python else null;
|
||||
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;
|
||||
static = getPkgConfig "distcc" "static" false;
|
||||
distcc = makeOverridable (import ../development/tools/misc/distcc) {
|
||||
inherit fetchurl stdenv popt python avahi pkgconfig;
|
||||
inherit (gtkLibs) gtk;
|
||||
static = false;
|
||||
};
|
||||
|
||||
docutils = builderDefsPackage (import ../development/tools/documentation/docutils) {
|
||||
|
Loading…
Reference in New Issue
Block a user