Skip to content

Backport postgresql packaging changes done in nixpkgs #1716

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 30 commits into
base: update-nixpkgs
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2fce8da
chore: update (and refactor) flake inputs
jfroche Jul 7, 2025
41fb6c7
chore: replace (deprecated) `substituteAll` by `replaceVars`
jfroche Jul 7, 2025
a0a68e6
chore: fix missing required `teams` meta attribute
jfroche Jul 7, 2025
48836e8
chore: update old (unsupported) version of nix used in script
jfroche Jul 7, 2025
eed9797
fix: overlay and use our `buildPgrxExtension` function
jfroche Jul 7, 2025
b57d6e6
chore: `v8` has been removed from nixpkgs and replaced with `nodejs.l…
jfroche Jul 7, 2025
e979dd5
chore: fix formatting
jfroche Jul 7, 2025
fcfdfe2
chore: fix a warning about `overrideAttrs` usage
yvan-sraka Jul 11, 2025
e9de07e
chore: bump `pgrouting` version to 3.8.0
yvan-sraka Jul 11, 2025
3ffbf79
Backport tzdata fixes for postgresql 15
jfroche Jul 18, 2025
456a24c
fix: plv8 3.1 requires older v8
jfroche Jul 21, 2025
016b070
chore: remove deprecated appl_sdk frameworks
jfroche Jul 21, 2025
c5fae77
chore: update cargo-pgrx 1.14.3 cargo hash
jfroche Jul 21, 2025
6c8ab8f
chore(postgresql): add isOrioleDB condition
jfroche Jul 21, 2025
98633c4
Fix pgregress tests
jfroche Jul 21, 2025
97cd23d
feat(postgresql): move dynamic modules to default output
jfroche Jul 21, 2025
472804b
feat(postgresql): move libecpq to lib output
jfroche Jul 21, 2025
dd06610
feat(postgresql): split dev output
jfroche Jul 21, 2025
d8ad1b0
feat(postgresql): remove references to llvm-dev on darwin as well
jfroche Jul 21, 2025
79d408a
feat(postgresql): refactor removal of references in bitcode files
jfroche Jul 21, 2025
8c1949b
feat(postgresql): refactor to simplify condition
jfroche Jul 21, 2025
171882c
feat(postgresql): use systemdLibs
jfroche Jul 21, 2025
cfb7e31
feat(postgresql): postgresql_jit.pkgs.postgis: fix build on darwin
jfroche Jul 21, 2025
d7b8162
feat(postgresql): improve fake pg_config in default output
jfroche Jul 21, 2025
1534f07
feat(postgresql): replace `stdenv.is` with `stdenv.hostPlatform.is`
jfroche Jul 21, 2025
8daecd4
feat(postgresql): run full test-suite during checkPhase
jfroche Jul 21, 2025
b1727c9
feat(postgresql): use newer libuuid instead of ossp-uuid
jfroche Jul 21, 2025
7176b6d
feat(postgresql): simplify systemdSupport default value
jfroche Jul 21, 2025
6050efb
feat(postgresql): remove deprecated enableSystemd override
jfroche Jul 21, 2025
26dd9f4
wip
jfroche Jul 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
226 changes: 48 additions & 178 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 28 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,35 @@
description = "Prototype tooling for deploying PostgreSQL";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
nix2container.url = "github:nlewo/nix2container";
nix-editor.url = "github:snowfallorg/nix-editor";
rust-overlay.url = "github:oxalica/rust-overlay";
nix-fast-build.url = "github:Mic92/nix-fast-build";
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
flake-parts.url = "github:hercules-ci/flake-parts";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
git-hooks.url = "github:cachix/git-hooks.nix";
git-hooks.inputs.nixpkgs.follows = "nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-editor = {
url = "github:snowfallorg/nix-editor";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-fast-build = {
url = "github:Mic92/nix-fast-build";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
inputs.treefmt-nix.follows = "treefmt-nix";
};
nix2container = {
url = "github:nlewo/nix2container";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
git-hooks = {
url = "github:cachix/git-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs =
Expand Down
6 changes: 1 addition & 5 deletions nix/cargo-pgrx/buildPgrxExtension.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
pkg-config,
rustPlatform,
stdenv,
darwin,
writeShellScriptBin,
}:

Expand Down Expand Up @@ -117,9 +116,7 @@ let
# so we don't accidentally `(rustPlatform.buildRustPackage argsForBuildRustPackage) // { ... }` because
# we forgot parentheses
finalArgs = argsForBuildRustPackage // {
buildInputs =
(args.buildInputs or [ ])
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
buildInputs = (args.buildInputs or [ ]);

nativeBuildInputs =
(args.nativeBuildInputs or [ ])
Expand Down Expand Up @@ -163,7 +160,6 @@ let
cargo-pgrx pgrx stop all

mv $out/${postgresql}/* $out
mv $out/${postgresql.lib}/* $out
rm -rf $out/nix

${maybeLeaveBuildAndTestSubdir}
Expand Down
Loading