molequeue: cmake fixes

This commit is contained in:
Phillip Seeber 2023-12-18 14:20:14 +01:00
parent 6421e18125
commit da1f5eab0f

View File

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
owner = "OpenChemistry";
repo = pname;
rev = version;
sha256 = "+NoY8YVseFyBbxc3ttFWiQuHQyy1GN8zvV1jGFjmvLg=";
hash = "sha256-+NoY8YVseFyBbxc3ttFWiQuHQyy1GN8zvV1jGFjmvLg=";
};
nativeBuildInputs = [
@ -18,9 +18,10 @@ stdenv.mkDerivation rec {
buildInputs = [ qttools ];
postFixup = ''
substituteInPlace $out/lib/cmake/molequeue/MoleQueueConfig.cmake \
--replace "''${MoleQueue_INSTALL_PREFIX}/$out" "''${MoleQueue_INSTALL_PREFIX}"
# Fix the broken CMake files to use the correct paths
postInstall = ''
substituteInPlace $out/lib/cmake/${pname}/MoleQueueConfig.cmake \
--replace "$out/" ""
'';
meta = with lib; {