systemd: Fix path to find_program('clang', ...) replacement

Systemd 261 moved the location of this call, which means that this
replacement was lost, which broke cross compilation.

See https://github.com/systemd/systemd/commit/e6fc73350f9485064302e687b964f70b28b2e4f6
This commit is contained in:
dramforever
2026-07-11 22:32:57 +08:00
parent ffc7f8ce99
commit 94ff2f02a4
+1 -1
View File
@@ -248,7 +248,7 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace src/basic/path-util.h --replace "@defaultPathNormal@" "${placeholder "out"}/bin/"
''
+ lib.optionalString withLibBPF ''
substituteInPlace meson.build \
substituteInPlace src/bpf/meson.build \
--replace "find_program('clang'" "find_program('${stdenv.cc.targetPrefix}clang'"
''
+ lib.optionalString withUkify ''