Commit 2326019a authored by Alyssa Ross's avatar Alyssa Ross
Browse files

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.
parent 322bec87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)