mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 02:55:39 +00:00
odyssey: build with compression support
This commit is contained in:
parent
e2c651c0de
commit
b7a9b9e1ae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user