anchor.diff:      # the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR correctly
       # (setting it to an absolute path causes include files to go to $out/$out/include,
       #  because the absolute path is interpreted with root at $out).
  +    # Can probably be removed once https://github.com/Exiv2/exiv2/pull/1263 is merged.
       "-DCMAKE_INSTALL_INCLUDEDIR=include"
       "-DCMAKE_INSTALL_LIBDIR=lib"
     ];
  
positive.code:   preCheck = ''
      patchShebangs ../test/
      mkdir ../test/tmp
      export LD_LIBRARY_PATH="$(realpath ../build/lib)"
  
      ${stdenv.lib.optionalString (stdenv.isAarch64 || stdenv.isAarch32) ''
        # Fix tests on arm
  
negative.code:     )
    '';
  
    # Fix CMake export paths. Can be removed once https://github.com/Exiv2/exiv2/pull/1263 is merged.
    postFixup = ''
      sed -i "$dev/lib/cmake/exiv2/exiv2Config.cmake" \
          -e "/INTERFACE_INCLUDE_DIRECTORIES/ s@\''${_IMPORT_PREFIX}@$dev@" \
  