nix: make nix expressions forward-compatible with newer nixpkgs

When consuming PostgREST via flake, nixpkgs can be pinned to a newer
version, to which we might not be compatible, yet.
This commit is contained in:
Wolfgang Walther
2025-03-28 09:22:34 +00:00
parent 149be6bc33
commit 1b57774bdf
+3 -2
View File
@@ -1,6 +1,7 @@
_: super:
{
libpq = super.callPackage ../libpq.nix {
# Depending on which nixpkgs version is pinned, libpq might either be available already - or not.
libpq = super.libpq or (super.callPackage ../libpq.nix {
postgresql = super.postgresql_16;
};
});
}