odyssey: fix build (#408314)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
diff --git a/third_party/kiwi/kiwi.h b/third_party/kiwi/kiwi.h
|
||||
index d3bf4113..a8a2ad6e 100644
|
||||
--- a/third_party/kiwi/kiwi.h
|
||||
+++ b/third_party/kiwi/kiwi.h
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <string.h>
|
||||
#include <pthread.h>
|
||||
#include <assert.h>
|
||||
+#include <ctype.h>
|
||||
#include <machinarium.h>
|
||||
|
||||
#include "kiwi/macro.h"
|
||||
@@ -26,6 +26,8 @@ stdenv.mkDerivation rec {
|
||||
url = "https://github.com/yandex/odyssey/commit/01ca5b345c4483add7425785c9c33dfa2c135d63.patch";
|
||||
sha256 = "sha256-8UPkZkiI08ZZL6GShhug/5/kOVrmdqYlsD1bcqfxg/w=";
|
||||
})
|
||||
# Fixes kiwi build.
|
||||
./fix-missing-c-header.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
@@ -34,6 +36,9 @@ stdenv.mkDerivation rec {
|
||||
libpq
|
||||
zstd
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int -Wno-error=incompatible-pointer-types";
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_COMPRESSION=ON"
|
||||
"-DPOSTGRESQL_INCLUDE_DIR=${lib.getDev libpq}/include/postgresql/server"
|
||||
|
||||
Reference in New Issue
Block a user