nix: add basic flake.nix

This just exposes the PostgREST package, not more.

The goal is to avoid duplication, so we're re-using only exports from
default.nix.

Resolves #3026
Supersedes #3105
This commit is contained in:
Wolfgang Walther
2025-03-28 09:22:34 +00:00
parent 139acb4251
commit 144b0c46ca
4 changed files with 106 additions and 1 deletions
+12 -1
View File
@@ -28,7 +28,7 @@
pacman -S postgrest
.. tab:: Nix
.. tab:: Nix via nixpkgs
You can install PostgREST from nixpkgs.
@@ -36,6 +36,17 @@
nix-env -i postgrest
.. tab:: Nix via flake
You can install PostgREST via flake.
.. code:: nix
{
inputs.postgrest.url = "github:postgrest/postgrest";
# ...
}
.. group-tab:: Windows
You can install PostgREST using `Chocolatey <https://community.chocolatey.org/packages/postgrest>`_ or `Scoop <https://github.com/ScoopInstaller/Scoop>`_.