Merge pull request #294457 from wolfgangwalther/postgresql-ext

postgresqlPackages: fixing multiple build failures
This commit is contained in:
Fabián Heredia Montiel 2024-03-12 14:55:49 -06:00 committed by GitHub
commit d5fe7897b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 8 additions and 17 deletions

View file

@ -25,6 +25,5 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ ivan ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
broken = versionOlder postgresql.version "9.5";
};
}

View file

@ -11,8 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-OIWykfFbVskrkPG/zSmZtZjc+W956KSfIzK7f5QOqpI=";
};
buildInputs = [ postgresql openssl zlib readline libkrb5 ]
++ lib.optionals (stdenv.isLinux && lib.versionOlder postgresql.version "13") [ libxcrypt ];
buildInputs = postgresql.buildInputs ++ [ postgresql ];
installPhase = ''
install -D -t $out/bin src/bin/pg_autoctl/pg_autoctl
@ -28,6 +27,5 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.marsam ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
broken = versionOlder postgresql.version "10";
};
}

View file

@ -25,6 +25,5 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ ivan ];
platforms = postgresql.meta.platforms;
license = licenses.asl20;
broken = versionOlder postgresql.version "12";
};
}

View file

@ -30,6 +30,5 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ thoughtpolice ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
broken = versionOlder postgresql.version "12";
};
}

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation (finalAttrs: {
pname = "pg_repack";
version = "1.5.0";
buildInputs = [ postgresql openssl zlib readline ];
buildInputs = postgresql.buildInputs ++ [ postgresql ];
src = fetchFromGitHub {
owner = "reorg";

View file

@ -41,7 +41,6 @@ stdenv.mkDerivation rec {
changelog = "https://github.com/okbob/plpgsql_check/releases/tag/v${version}";
platforms = postgresql.meta.platforms;
license = licenses.mit;
broken = versionOlder postgresql.version "12";
maintainers = [ maintainers.marsam ];
};
}

View file

@ -5,7 +5,7 @@ index 38879cc..6e78eeb 100644
@@ -20,6 +20,7 @@ OBJS = $(SRCS:.cc=.o)
MODULE_big = plv8-$(PLV8_VERSION)
EXTENSION = plv8
PLV8_DATA = plv8.control plv8--$(PLV8_VERSION).sql $(wildcard upgrade/*.sql)
PLV8_DATA = plv8.control plv8--$(PLV8_VERSION).sql
+USE_SYSTEM_V8 = 0

View file

@ -12,13 +12,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "plv8";
version = "3.1.5";
version = "3.1.10";
src = fetchFromGitHub {
owner = "plv8";
repo = "plv8";
rev = "v${finalAttrs.version}";
hash = "sha256-LodC2eQJSm5fLckrjm2RuejZhmOyQMJTv9b0iPCnzKQ=";
hash = "sha256-g1A/XPC0dX2360Gzvmo9/FSQnM6Wt2K4eR0pH0p9fz4=";
};
patches = [

View file

@ -83,6 +83,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl2;
maintainers = with maintainers; teams.geospatial.members ++ [ marcweber ];
inherit (postgresql.meta) platforms;
broken = versionOlder postgresql.version "12";
};
}

View file

@ -54,7 +54,6 @@ buildPgxExtension rec {
license = licenses.unfree;
# as it needs to be used with timescaledb, simply use the condition from there
broken = versionOlder postgresql.version "12"
|| versionAtLeast postgresql.version "15";
broken = versionAtLeast postgresql.version "15";
};
}

View file

@ -24,8 +24,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ flex ];
buildInputs = [ postgresql openssl zlib readline curl json_c ]
++ lib.optionals (stdenv.isLinux && lib.versionOlder postgresql.version "13") [ libxcrypt ];
buildInputs = postgresql.buildInputs ++ [ postgresql curl json_c ];
installPhase = ''
mkdir -p $out/{bin,lib,share/postgresql/extension}

View file

@ -62,6 +62,6 @@ in
license = licenses.asl20;
# as it needs to be used with timescaledb, simply use the condition from there
broken = versionOlder postgresql.version "12" || stdenv.isDarwin;
broken = stdenv.isDarwin;
};
}