Skip to content

Commit

Permalink
postgresqlPackages: some cleanup (#343309)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz authored Sep 25, 2024
2 parents 872f4a1 + fa8a147 commit f6e93ec
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pkgs/servers/sql/postgresql/ext/pg_auto_failover.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline, libkrb5, libxcrypt }:
{ lib, stdenv, fetchFromGitHub, postgresql }:

stdenv.mkDerivation rec {
pname = "pg_auto_failover";
Expand Down
1 change: 0 additions & 1 deletion pkgs/servers/sql/postgresql/ext/pg_repack.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
, postgresql
, postgresqlTestHook
, testers
, zlib
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down
4 changes: 3 additions & 1 deletion pkgs/servers/sql/postgresql/ext/pg_similarity.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ stdenv.mkDerivation {
};

buildInputs = [ postgresql gcc ];
buildPhase = "USE_PGXS=1 make";

makeFlags = [ "USE_PGXS=1" ];

installPhase = ''
install -D pg_similarity${postgresql.dlSuffix} -t $out/lib/
install -D ./{pg_similarity--unpackaged--1.0.sql,pg_similarity--1.0.sql,pg_similarity.control} -t $out/share/postgresql/extension
Expand Down
6 changes: 3 additions & 3 deletions pkgs/servers/sql/postgresql/ext/plr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkg-config ];
buildInputs = [ R postgresql ];
preBuild = ''
export USE_PGXS=1
'';

makeFlags = [ "USE_PGXS=1" ];

installPhase = ''
install -D plr${postgresql.dlSuffix} -t $out/lib/
install -D {plr--*.sql,plr.control} -t $out/share/postgresql/extension
Expand Down
1 change: 0 additions & 1 deletion pkgs/servers/sql/postgresql/ext/repmgr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
, flex
, curl
, json_c
, libxcrypt
}:

stdenv.mkDerivation rec {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/servers/sql/postgresql/ext/system_stats.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
}:
stdenv.mkDerivation rec {
pname = "system_stats";
version = "3.0";
version = "3.2";

buildInputs = [ postgresql ];

src = fetchFromGitHub {
owner = "EnterpriseDB";
repo = "system_stats";
rev = "v${version}";
hash = "sha256-LuX7/LOi0rl6L/kjbjq7rr2zPcGIOYB7hdZBNJ9xqak=";
hash = "sha256-/xXnui0S0ZjRw7P8kMAgttHVv8T41aOhM3pM8P0OTig=";
};

installPhase = ''
Expand Down

0 comments on commit f6e93ec

Please sign in to comment.