From 94ff2f02a40db7469e78f1e07b509a1ed63433d3 Mon Sep 17 00:00:00 2001 From: dramforever Date: Sat, 11 Jul 2026 22:24:21 +0800 Subject: [PATCH] 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 --- pkgs/os-specific/linux/systemd/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index eab1a27055ec..f7fefd8110f7 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -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 ''