diff --git a/pkgs/by-name/od/odyssey/fix-missing-c-header.patch b/pkgs/by-name/od/odyssey/fix-missing-c-header.patch new file mode 100644 index 000000000000..f3312e5e2495 --- /dev/null +++ b/pkgs/by-name/od/odyssey/fix-missing-c-header.patch @@ -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 + #include + #include ++#include + #include + + #include "kiwi/macro.h" diff --git a/pkgs/by-name/od/odyssey/package.nix b/pkgs/by-name/od/odyssey/package.nix index 39766cf81224..b6d4217b450a 100644 --- a/pkgs/by-name/od/odyssey/package.nix +++ b/pkgs/by-name/od/odyssey/package.nix @@ -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"