about summary refs log tree commit diff
path: root/pkgs/tools/misc/odyssey
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2022-08-12 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2022-08-12 04:20:00 +0000
commitb7a9b9e1ae257c173d2f9b1b62f1881499aab074 (patch)
tree33fd718de46b3df8b90d76b1385c9084fd0cf6da /pkgs/tools/misc/odyssey
parente2c651c0de89c6bd9bbccec0fcb60c30b6a570f7 (diff)
odyssey: build with compression support
Diffstat (limited to 'pkgs/tools/misc/odyssey')
-rw-r--r--pkgs/tools/misc/odyssey/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/misc/odyssey/default.nix b/pkgs/tools/misc/odyssey/default.nix
index f0a59e1d0aae4..086c1eea58a85 100644
--- a/pkgs/tools/misc/odyssey/default.nix
+++ b/pkgs/tools/misc/odyssey/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, cmake, openssl, postgresql, zstd }:
+{ lib, stdenv, fetchFromGitHub, cmake, openssl, postgresql, zstd, fetchpatch }:
 
 stdenv.mkDerivation rec {
   pname = "odyssey";
@@ -11,9 +11,17 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-1ALTKRjpKmmFcAuhmgpcbJBkNuUlTyau8xWDRHh7gf0=";
   };
 
+  patches = [
+    # Fix compression build. Remove with the next release. https://github.com/yandex/odyssey/pull/441
+    (fetchpatch {
+      url = "https://github.com/yandex/odyssey/commit/01ca5b345c4483add7425785c9c33dfa2c135d63.patch";
+      sha256 = "sha256-8UPkZkiI08ZZL6GShhug/5/kOVrmdqYlsD1bcqfxg/w=";
+    })
+  ];
+
   nativeBuildInputs = [ cmake ];
   buildInputs = [ openssl postgresql zstd ];
-  cmakeFlags = [ "-DPQ_LIBRARY=${postgresql.lib}/lib" ];
+  cmakeFlags = [ "-DPQ_LIBRARY=${postgresql.lib}/lib" "-DBUILD_COMPRESSION=ON" ];
 
   installPhase = ''
     install -Dm755 -t $out/bin sources/odyssey