postgresql16Packages.pg_bigm: fix build
This commit is contained in:
parent
cc61b5a175
commit
f861efe860
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, postgresql }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pg_bigm";
|
||||
@ -11,17 +11,22 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-3lspEglVWzEUTiRIWqW0DpQe8gDn9R/RxsWuI9znYc8=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix compatiblity with PostgreSQL 16. Remove with the next release.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/pgbigm/pg_bigm/commit/2a9d783c52a1d7a2eb414da6f091f6035da76edf.patch";
|
||||
hash = "sha256-LuMpSUPnT8cPChQfA9sJEKP4aGpsbN5crfTKLnDzMN8=";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ postgresql ];
|
||||
|
||||
makeFlags = [ "USE_PGXS=1" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin # For buildEnv to setup proper symlinks. See #22653
|
||||
mkdir -p $out/{lib,share/postgresql/extension}
|
||||
|
||||
cp *.so $out/lib
|
||||
cp *.sql $out/share/postgresql/extension
|
||||
cp *.control $out/share/postgresql/extension
|
||||
install -D -t $out/lib pg_bigm${postgresql.dlSuffix}
|
||||
install -D -t $out/share/postgresql/extension *.sql
|
||||
install -D -t $out/share/postgresql/extension *.control
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user