···2828 sha256 = "sha256-FEmWjJVmKKckC30zULGI/mZ3VNtirnweZq2gKh/Y5VE=";2929 };30303131+ patches = [3232+ # Hardcode absolute paths to libraries so that consumers3333+ # do not need to set LD_LIBRARY_PATH themselves.3434+ ./hardcode-paths.patch3535+ ];3636+3137 nativeBuildInputs = [3238 docbook-xsl-nons3339 gobject-introspection···6256 ];63576458 doCheck = true;5959+6060+ postPatch = ''6161+ # Substitute the path to this derivation in the patch we apply.6262+ substituteInPlace src/umockdev-wrapper \6363+ --subst-var-by 'LIBDIR' "''${!outputLib}/lib"6464+ '';6565+6666+ preCheck = ''6767+ # Our patch makes the path to the `LD_PRELOAD`ed library absolute.6868+ # When running tests, the library is not yet installed, though,6969+ # so we need to replace the absolute path with a local one during build.7070+ # We are using a symlink that will be overridden during installation.7171+ mkdir -p "$out/lib"7272+ ln -s "$PWD/libumockdev-preload.so.0" "$out/lib/libumockdev-preload.so.0"7373+ '';65746675 meta = with lib; {6776 description = "Mock hardware devices for creating unit tests";