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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user