From 25725c82a18347049facd62e5af3b6cadc91ba66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 27 Feb 2025 19:24:58 +0100 Subject: [PATCH] python313Packages.systemd: use libredirect.hook --- pkgs/development/python-modules/systemd/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/systemd/default.nix b/pkgs/development/python-modules/systemd/default.nix index ebf70c9946cb..72fe6ed5cd2b 100644 --- a/pkgs/development/python-modules/systemd/default.nix +++ b/pkgs/development/python-modules/systemd/default.nix @@ -25,12 +25,14 @@ buildPythonPackage rec { buildInputs = [ systemd ]; - nativeCheckInputs = [ pytest ]; + nativeCheckInputs = [ + libredirect.hook + pytest + ]; checkPhase = '' echo "12345678901234567890123456789012" > machine-id export NIX_REDIRECTS=/etc/machine-id=$(realpath machine-id) \ - LD_PRELOAD=${libredirect}/lib/libredirect.so # Those tests assume /etc/machine-id to be available # But our redirection technique does not work apparently