From 71526b0da2a26238af659e1acbb1eb6489928a63 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 29 Mar 2025 17:12:33 +0100 Subject: [PATCH] kore: use libpq 17 --- pkgs/by-name/ko/kore/package.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ko/kore/package.nix b/pkgs/by-name/ko/kore/package.nix index d6b32fe06456..4f95c0d3382c 100644 --- a/pkgs/by-name/ko/kore/package.nix +++ b/pkgs/by-name/ko/kore/package.nix @@ -2,15 +2,15 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, openssl, curl, - postgresql_16, + libpq, yajl, }: stdenv.mkDerivation rec { pname = "kore"; - # TODO: Check on next update whether postgresql 17 is supported. version = "4.2.3"; src = fetchFromGitHub { @@ -20,15 +20,26 @@ stdenv.mkDerivation rec { sha256 = "sha256-p0M2P02xwww5EnT28VnEtj5b+/jkPW3YkJMuK79vp4k="; }; + patches = [ + (fetchpatch { + url = "https://github.com/jorisvink/kore/commit/978cb0ab79c9c939c35996f34f7d835f9c671831.patch"; + hash = "sha256-uHTWiliM4m2i9/6GQQfnAo31XBXd/2+fzysPeNo2dQ0="; + }) + (fetchpatch { + url = "https://github.com/jorisvink/kore/commit/6122affe22bf676eed0f544e421c53699aa7a2e2.patch"; + hash = "sha256-xaiUOjBJPEgEwwuseXe6VbOTkOCKdQ5tuwDdL7DojHM="; + }) + ]; + buildInputs = [ openssl curl - postgresql_16 + libpq yajl ]; nativeBuildInputs = [ - postgresql_16.pg_config + libpq.pg_config ]; makeFlags = [