odyssey: fix build

This commit is contained in:
alyaeanyx
2025-05-18 12:05:28 +02:00
parent 6b1a92f5a4
commit a4bb668ee9
2 changed files with 17 additions and 0 deletions
@@ -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"
+5
View File
@@ -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"