about summary refs log tree commit diff
diff options
context:
space:
mode:
authorrewine <lhongxu@outlook.com>2023-03-26 22:52:52 +0800
committerrewine <lhongxu@outlook.com>2023-03-30 09:46:55 +0800
commitac70a84187539c0904736907deba8a8aaf7db158 (patch)
tree4f865150c14abe2d8033ce77766eb735b1e35725
parent64b624ce76eea642990246fa21a5f8652c2c8201 (diff)
litehtml: don't search for non-existant gumbo cmake config
-rw-r--r--pkgs/development/libraries/litehtml/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/libraries/litehtml/default.nix b/pkgs/development/libraries/litehtml/default.nix
index 6e3db75f5ebbb..3927f7cce4a53 100644
--- a/pkgs/development/libraries/litehtml/default.nix
+++ b/pkgs/development/libraries/litehtml/default.nix
@@ -16,6 +16,14 @@ stdenv.mkDerivation rec {
     hash = "sha256-9571d3k8RkzEpMWPuIejZ7njLmYstSwFUaSqT3sk6uQ=";
   };
 
+  # Don't search for non-existant gumbo cmake config
+  # This will mislead cmake that litehtml is not found
+  # Affects build of pkgs that depend on litehtml
+  postPatch = ''
+    substituteInPlace cmake/litehtmlConfig.cmake \
+      --replace "find_dependency(gumbo)" ""
+  '';
+
   nativeBuildInputs = [
     cmake
   ];