watchman: patch CMake reproducibility issue

This is the first thing outside of CMake itself I’ve seen that
would have derived some value from `fixCmakeFiles`.
This commit is contained in:
Emily
2025-09-16 02:26:59 +01:00
parent 2432d98325
commit 09bbd80fad
+6
View File
@@ -96,6 +96,12 @@ stdenv.mkDerivation (finalAttrs: {
cp ${./Cargo.lock} ${finalAttrs.cargoRoot}/Cargo.lock
# The build system looks for `/usr/bin/python3`. It falls back
# gracefully if its not found, but lets dodge the potential
# reproducibility risk for unsandboxed Darwin.
substituteInPlace CMakeLists.txt \
--replace-fail /usr/bin /var/empty
# Facebook Thrift requires C++20 now but Watchman hasnt been
# updated yet (Arent these things meant to be integrated together
# in a monorepo?)