···16 sha256 = "152gqnmr6wfmflf5l6447am4clmg3p69pvy3iw7yhaawjqa797sk";
17 };
1819- # N.B. We need to create this file, otherwise it tries to use git to
20- # determine the package version, which we do not want.
21- #
22- # N.B. We disable tests by force, since their build is broken.
23 postPatch = ''
0024 echo "${version}" > .version-stamp
25 echo "${version}" > .commit-stamp
0026 sed -i '/add_subdirectory(tests)/d' ./CMakeLists.txt
00000027 '';
2829 nativeBuildInputs = [ cmake pkg-config ];
···16 sha256 = "152gqnmr6wfmflf5l6447am4clmg3p69pvy3iw7yhaawjqa797sk";
17 };
18000019 postPatch = ''
20+ # N.B. We need to create this file, otherwise it tries to use git to
21+ # determine the package version, which we do not want.
22 echo "${version}" > .version-stamp
23 echo "${version}" > .commit-stamp
24+25+ # N.B. We disable tests by force, since their build is broken.
26 sed -i '/add_subdirectory(tests)/d' ./CMakeLists.txt
27+28+ # https://github.com/dcreager/libcork/issues/173
29+ substituteInPlace cmake/FindCTargets.cmake \
30+ --replace '\$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
31+ --replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR} \
32+ --replace '\$'{datarootdir}/'$'{base_docdir} '$'{CMAKE_INSTALL_FULL_DOCDIR}
33 '';
3435 nativeBuildInputs = [ cmake pkg-config ];