···1616 sha256 = "152gqnmr6wfmflf5l6447am4clmg3p69pvy3iw7yhaawjqa797sk";
1717 };
18181919- # N.B. We need to create this file, otherwise it tries to use git to
2020- # determine the package version, which we do not want.
2121- #
2222- # N.B. We disable tests by force, since their build is broken.
2319 postPatch = ''
2020+ # N.B. We need to create this file, otherwise it tries to use git to
2121+ # determine the package version, which we do not want.
2422 echo "${version}" > .version-stamp
2523 echo "${version}" > .commit-stamp
2424+2525+ # N.B. We disable tests by force, since their build is broken.
2626 sed -i '/add_subdirectory(tests)/d' ./CMakeLists.txt
2727+2828+ # https://github.com/dcreager/libcork/issues/173
2929+ substituteInPlace cmake/FindCTargets.cmake \
3030+ --replace '\$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
3131+ --replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR} \
3232+ --replace '\$'{datarootdir}/'$'{base_docdir} '$'{CMAKE_INSTALL_FULL_DOCDIR}
2733 '';
28342935 nativeBuildInputs = [ cmake pkg-config ];