diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 59ecbb865ef9..11492bd163e3 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -17,6 +17,7 @@ getent, glibcLocales, autoPatchelfHook, + fetchpatch, # glib is only used during tests (test-bus-gvariant, test-bus-marshal) glib, @@ -281,6 +282,14 @@ stdenv.mkDerivation (finalAttrs: { "0025-adjust-header-inclusion-order-to-avoid-redeclaration.patch" "0026-build-path.c-avoid-boot-time-segfault-for-musl.patch" ] + ++ [ + # add a missing include + (fetchpatch { + url = "https://github.com/systemd/systemd/commit/34fcd3638817060c79e1186b370e46d9b3a7409f.patch"; + hash = "sha256-Uaewo3jPrZGJttlLcqO6cCj1w3IGZmvbur4+TBdIPxc="; + excludes = [ "src/udev/udevd.c" ]; + }) + ] ); postPatch =