Skip to content

Commit

Permalink
chore(nix): Upgrade postgresql@17
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillespie committed Jan 27, 2025
1 parent be77bba commit 98ccdbb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
# Database tests
let
postgresTest = {
build-tools = [ pkgs.pkgsBuildHost.postgresql_14 ];
build-tools = [ pkgs.pkgsBuildHost.postgresql_17 ];
inherit preCheck;
inherit postCheck;
};
Expand Down Expand Up @@ -498,6 +498,7 @@
};

legacyPackages = pkgs;
legacyPackagesUpstream = nixpkgsUpstream;

packages = lib.optionalAttrs (system == "x86_64-linux") {
inherit
Expand Down
4 changes: 2 additions & 2 deletions nix/docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
, bashInteractive, cacert, cardano-cli, cardano-db-sync, cardano-db-tool
, cardano-smash-server, coreutils, curl, findutils, getconf, glibcLocales
, gnused, gnutar, gzip, jq, iana-etc, iproute, iputils, lib, libidn, libpqxx
, postgresql_14, socat, utillinux
, postgresql_17, socat, utillinux
}:

let
Expand Down Expand Up @@ -46,7 +46,7 @@ let
iputils # Useful utilities for Linux networking
libidn # Library for internationalized domain names
libpqxx # A C++ library to access PostgreSQL databases
postgresql_14 # A powerful, open source object-relational database system
postgresql_17 # A powerful, open source object-relational database system
socat # Utility for bidirectional data transfer
utillinux # System utilities for Linux
cardano-cli # tool for interacting with cardano-node
Expand Down
2 changes: 1 addition & 1 deletion nix/nixos/tests/services-basic-test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ with pkgs;
systemd.services.cardano-db-sync.serviceConfig.SupplementaryGroups = "cardano-node";
services.postgresql = {
enable = true;
package = postgresql_14;
package = postgresql_17;
enableTCPIP = false;
ensureDatabases = [ "${config.services.cardano-db-sync.postgres.database}" ];
initialScript = builtins.toFile "enable-pgcrypto.sql" ''
Expand Down

0 comments on commit 98ccdbb

Please sign in to comment.