Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Jan 30, 2025
1 parent f5f373e commit 748d384
Showing 1 changed file with 34 additions and 17 deletions.
51 changes: 34 additions & 17 deletions overlays/postgres.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
final: prev:
let
buildInputs =
[
final.zlib
final.readline
final.openssl_patched
(final.libxml2.override { enableHttp = true; })
final.icu
final.libuuid
final.lz4
final.zstd
final.systemdSupport
]
++ final.lib.optionals (with final.stdenv.hostPlatform; !isWindows && !isStatic) [ final.libkrb5 ]
++ final.lib.optionals final.stdenv.hostPlatform.isLinux [ final.linux-pam ];
replaceBuildInput =
{ buildInputs
, oldPackage
, newPackage
}: builtins.filter
(x: x.name or "" != oldPackage)
buildInputs
++ [ newPackage ];
in
rec {
postgresql_14_15 = prev.postgresql_14.overrideAttrs
(finalAttrs: previousAttrs: rec {
pname = "postgresql";
version = "14.15";

inherit buildInputs;
buildInputs = replaceBuildInput {
buildInputs = previousAttrs.buildInputs;
oldPackage = "openssl";
newPackage = final.openssl_patched;
};

doCheck = false;
doInstallCheck = false;
Expand Down Expand Up @@ -54,7 +52,13 @@ rec {
pname = "postgresql";
version = "15.10";

inherit buildInputs;
buildInputs = replaceBuildInput {
buildInputs = previousAttrs.buildInputs;
oldPackage = "openssl";
newPackage = final.openssl_patched;
};

withSystemdSupport = false;

doCheck = false;
doInstallCheck = false;
Expand Down Expand Up @@ -87,7 +91,13 @@ rec {
pname = "postgresql";
version = "16.6";

inherit buildInputs;
buildInputs = replaceBuildInput {
buildInputs = previousAttrs.buildInputs;
oldPackage = "openssl";
newPackage = final.openssl_patched;
};

withSystemdSupport = false;

doCheck = false;
doInstallCheck = false;
Expand Down Expand Up @@ -120,6 +130,13 @@ rec {
pname = "postgresql";
version = "17.2";

buildInputs = replaceBuildInput {
buildInputs = previousAttrs.buildInputs;
oldPackage = "openssl";
newPackage = final.openssl_patched;
};

withSystemdSupport = false;
doCheck = false;

src = final.fetchurl {
Expand Down

0 comments on commit 748d384

Please sign in to comment.