Unverified Commit 9c8dbe3b authored by Atemu's avatar Atemu Committed by GitHub
Browse files

odyssey: fix build (#408314)

parents d063c30a a4bb668e
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
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 −0
Original line number Diff line number Diff line
@@ -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"