nix: instructions for static binary

This commit is contained in:
steve-chavez
2023-10-06 19:54:05 -03:00
parent 2aa58164ab
commit a9d6c318fd
+9
View File
@@ -22,6 +22,15 @@ build the `postgrestPackage` attribute from the Nix expression it finds in our
`default.nix` (see below for details). Nix will take care of getting the right
GHC version and all the build dependencies.
You can also build a statically linked binary with:
```bash
$ nix-build --attr postgrestStatic
$ ldd result/bin/postgrest
$ not a dynamic executable
```
## Binary cache
We recommend that you use the PostgREST binary cache on