From d273f420f86c0bb61a013e743b48b4694f90f5cc Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Thu, 23 Jan 2025 14:30:53 -0800 Subject: [PATCH] systemd: set dontCheckForBrokenSymlinks --- pkgs/os-specific/linux/systemd/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 59ecbb865ef9b..f9fd84c77df05 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -774,6 +774,12 @@ stdenv.mkDerivation (finalAttrs: { doCheck = false; # fails a bunch of tests + # NOTE: There is a broken (from within the Nix sandbox) symlink installed in the output which points to + # /etc/environment. This is a compatibility shim, so we do not remove it. Instead, we disable the check + # for broken symlinks. + # For more, see https://www.freedesktop.org/software/systemd/man/latest/environment.d.html#Description. + dontCheckForBrokenSymlinks = true; + # trigger the test -n "$DESTDIR" || mutate in upstreams build system preInstall = '' export DESTDIR=/