diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 30a3026df311..295e23559fcb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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) {