distcc: fixup build with python 3.12

https://hydra.nixos.org/build/264564185/nixlog/4/tail
Also move python3 and which to nativeBuildInputs.
This commit is contained in:
Vladimír Čunát 2024-07-06 07:41:32 +02:00
parent 5c575f958d
commit 8e7fcd2d70
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -17,8 +17,11 @@ let
sha256 = "0zjba1090awxkmgifr9jnjkxf41zhzc4f6mrnbayn3v6s77ca9x4";
};
nativeBuildInputs = [ pkg-config autoconf automake ];
buildInputs = [popt avahi python3 gtk3 which procps libiberty_static];
nativeBuildInputs = [
pkg-config autoconf automake which
(python3.withPackages (p: [ p.setuptools ]))
];
buildInputs = [ popt avahi gtk3 procps libiberty_static ];
preConfigure =
''
export CPATH=$(ls -d ${gcc.cc}/lib/gcc/*/${gcc.cc.version}/plugin/include)