Skip to content

Commit

Permalink
watchman: add patch for glog ≥ 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy committed Jan 6, 2025
1 parent ab6e427 commit e9e5260
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pkgs/by-name/wa/watchman/glog-0.7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dd6eec3320..ee74ab0008 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -333,7 +333,7 @@
find_package(Gflags REQUIRED)
include_directories(SYSTEM ${GFLAGS_INCLUDE_DIR})

-find_package(Glog REQUIRED)
+find_package(Glog CONFIG REQUIRED)
add_compile_definitions(GLOG_NO_ABBREVIATED_SEVERITIES)

# We indirectly depend on boost. This logic needs to match
@@ -479,7 +479,6 @@
)
target_include_directories(third_party_deps INTERFACE
${FOLLY_INCLUDE_DIR}
- ${GLOG_INCLUDE_DIR}
${GFLAGS_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
)
4 changes: 4 additions & 0 deletions pkgs/by-name/wa/watchman/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-W37+xs+Fj2yL9KzR9CugfgbFl+g3f+2Dx+xL9MpQEQ4=";
};

patches = [
./glog-0.7.patch
];

nativeBuildInputs = [
cmake
ninja
Expand Down

0 comments on commit e9e5260

Please sign in to comment.