Skip to content

Commit 25725c8

Browse files
python313Packages.systemd: use libredirect.hook
1 parent a36c8c9 commit 25725c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkgs/development/python-modules/systemd/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ buildPythonPackage rec {
2525

2626
buildInputs = [ systemd ];
2727

28-
nativeCheckInputs = [ pytest ];
28+
nativeCheckInputs = [
29+
libredirect.hook
30+
pytest
31+
];
2932

3033
checkPhase = ''
3134
echo "12345678901234567890123456789012" > machine-id
3235
export NIX_REDIRECTS=/etc/machine-id=$(realpath machine-id) \
33-
LD_PRELOAD=${libredirect}/lib/libredirect.so
3436
3537
# Those tests assume /etc/machine-id to be available
3638
# But our redirection technique does not work apparently

0 commit comments

Comments
 (0)