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:
@@ -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;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user