xdg-desktop-portal: don't reference unused umockdev

The preCheck string always ends up in the derivation, even if doCheck
is false.  To avoid an unnecessary umockdev reference, make it
conditional on whether it will actually be used.
This commit is contained in:
Alyssa Ross
2025-05-07 18:35:05 +02:00
parent 322bec8709
commit 2326019ab4
@@ -154,7 +154,7 @@ stdenv.mkDerivation (finalAttrs: {
patchShebangs tests/run-test.sh
'';
preCheck = ''
preCheck = lib.optionalString finalAttrs.finalPackage.doCheck ''
# For test_trash_file
export HOME=$(mktemp -d)