forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge: postgresql: update to new minor versions (NixOS#355965)
- Loading branch information
Showing
6 changed files
with
18 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import ./generic.nix { | ||
version = "17.0"; | ||
hash = "sha256-fidhMcD91rYliNutmzuyS4w0mNUAkyjbpZrxboGRCd4="; | ||
# TODO: Add dont-use-locale-a-on-musl.patch once Alpine Linux has PostgreSQL 17. | ||
# MR in: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/72853 | ||
version = "17.1"; | ||
hash = "sha256-eEnbdO9qhVXQcj+H6BU5MBQi+pyOnyHM5h/cFOkZnc0="; | ||
muslPatches = { | ||
dont-use-locale-a = { | ||
url = "https://git.alpinelinux.org/aports/plain/main/postgresql17/dont-use-locale-a-on-musl.patch?id=d69ead2c87230118ae7f72cef7d761e761e1f37e"; | ||
hash = "sha256-6zjz3OpMx4qTETdezwZxSJPPdOvhCNu9nXvAaU9SwH8="; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,42 +165,20 @@ let | |
src = ./patches/locale-binary-path.patch; | ||
locale = "${if stdenv.hostPlatform.isDarwin then darwin.adv_cmds else lib.getBin stdenv.cc.libc}/bin/locale"; | ||
}) | ||
] ++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "17") [ | ||
] ++ lib.optionals (olderThan "17" && atLeast "16") [ | ||
# TODO: Remove this with the next set of minor releases | ||
(fetchpatch ({ | ||
url = "https://github.com/postgres/postgres/commit/0a883a067bd78f0ff0607afb18c4f783ac764504.patch"; | ||
hash = "sha256-F3zCaar6w6bwQDno7Tkg7ZbPJ+rhgi8/2NSvFakzQek="; | ||
})) | ||
] ++ lib.optionals (olderThan "17") [ | ||
# TODO: Remove this with the next set of minor releases | ||
(fetchpatch ( | ||
if atLeast "14" then { | ||
url = "https://github.com/postgres/postgres/commit/b27622c90869aab63cfe22159a459c57768b0fa4.patch"; | ||
hash = "sha256-7G+BkJULhyx6nlMEjClcr2PJg6awgymZHr2JgGhXanA="; | ||
excludes = [ "doc/*" ]; | ||
} else if atLeast "13" then { | ||
url = "https://github.com/postgres/postgres/commit/b28b9b19bbe3410da4a805ef775e0383a66af314.patch"; | ||
hash = "sha256-meFFskNWlcc/rv4BWo6fNR/tTFgQRgXGqTkJkoX7lHU="; | ||
excludes = [ "doc/*" ]; | ||
} else { | ||
url = "https://github.com/postgres/postgres/commit/205813da4c264d80db3c3215db199cc119e18369.patch"; | ||
hash = "sha256-L8/ns/fxTh2ayfDQXtBIKaArFhMd+v86UxVFWQdmzUw="; | ||
excludes = [ "doc/*" ]; | ||
}) | ||
) | ||
})) | ||
] ++ lib.optionals stdenv'.hostPlatform.isMusl ( | ||
# Using fetchurl instead of fetchpatch on purpose: https://github.com/NixOS/nixpkgs/issues/240141 | ||
map fetchurl (lib.attrValues muslPatches) | ||
) ++ lib.optionals stdenv'.hostPlatform.isLinux [ | ||
(if atLeast "13" then ./patches/socketdir-in-run-13+.patch else ./patches/socketdir-in-run.patch) | ||
] ++ lib.optionals (stdenv'.hostPlatform.isDarwin && olderThan "16") [ | ||
./patches/export-dynamic-darwin-15-.patch | ||
] ++ lib.optionals (atLeast "17") [ | ||
# Fix flaky test, https://www.postgresql.org/message-id/[email protected] | ||
(fetchpatch { | ||
url = "https://github.com/postgres/postgres/commit/a358019159de68d4f045cbb5d89c8c8c2e96e483.patch"; | ||
hash = "sha256-9joQZo93oUTp6CrcGnhj7o+Mrbj/KCWwwGUc9KAst+s="; | ||
}) | ||
]; | ||
|
||
installTargets = [ "install-world" ]; | ||
|