Commit 157c7313 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

libgudev: don't add umockdev dep if doCheck=false

This avoids an unnecessary input if checks are disabled.  The
expression already contains a check to support this override.
parent ee1069d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
    ./tests-skip-double-test-on-stub-locale-impls.patch
  ];

  postPatch = ''
  postPatch = lib.optionalString finalAttrs.finalPackage.doCheck ''
    # The relative location of LD_PRELOAD works for Glibc but not for other loaders (e.g. pkgsMusl)
    substituteInPlace tests/meson.build \
      --replace "LD_PRELOAD=libumockdev-preload.so.0" "LD_PRELOAD=${lib.getLib umockdev}/lib/libumockdev-preload.so.0"