lol

libcork: fix paths in pkg-config file

authored by

Alexander Shpilkin and committed by
Artturin
d1f14fab e1adfee0

+10 -4
+10 -4
pkgs/development/libraries/libcork/default.nix
··· 16 16 sha256 = "152gqnmr6wfmflf5l6447am4clmg3p69pvy3iw7yhaawjqa797sk"; 17 17 }; 18 18 19 - # 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 19 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. 24 22 echo "${version}" > .version-stamp 25 23 echo "${version}" > .commit-stamp 24 + 25 + # N.B. We disable tests by force, since their build is broken. 26 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} 27 33 ''; 28 34 29 35 nativeBuildInputs = [ cmake pkg-config ];