Wolfgang Walther and Wolfgang Walther
80f83f0366
nix: Update to latest nixpkgs#master
2024-04-20 17:06:29 +02:00
Wolfgang Walther and Wolfgang Walther
b6a50ab8ed
nix: Allow changing to a fork in nixpkgs-version.nix
2024-04-20 17:06:29 +02:00
Wolfgang Walther
a090f28cea
ci: Install only the required nix tools
...
A previous commit allowed to select each tool separately on the toolbox.
This commit makes use of that for CI to possibly speed up loading from cachix
a little bit. It will also cause fewer cache misses when nix code is changed.
Resolves #3183
2024-02-26 22:06:01 +01:00
Wolfgang Walther
ccc386cf38
nix: Add deadnix to postgrest-lint and remove dead nix code
2024-02-24 13:08:04 +01:00
Laurence Isla and Wolfgang Walther
a1f2ecadda
nix: Move docs tools into core infrastructure
2024-02-18 13:10:00 +01:00
Wolfgang Walther and Wolfgang Walther
ea02729ebd
nix: Use -split-sections with pkgsStatic to make static executable smaller again
...
This works around https://github.com/NixOS/nixpkgs/issues/286285 to use -split-sections
in a cross-compiling scenario. This will reduce the size of the static executable and also
remove the remaining references to /nix/store/.. reducing closure size dramatically.
This also fixes the docker image blowing up in size since we switched to pkgsStatic.
2024-02-06 10:19:31 +01:00
Wolfgang Walther and Wolfgang Walther
85fbb233a7
nix: Build only libpq instead of full postgresql package
2024-01-26 17:17:05 +01:00
Wolfgang Walther and Wolfgang Walther
259d97acee
nix: Build static postgrest executable via pkgsStatic
...
This replaces the build via static-haskell-nix and will hopefully make
it possible to cross compile in the future.
2024-01-26 17:17:05 +01:00
Wolfgang Walther and Wolfgang Walther
6682baebd2
nix: Update nixpkgs and build with GHC 9.4.8
2024-01-18 18:54:33 +01:00
steve-chavez
3b1eb51744
ci: fix MacOS CI
2023-09-29 19:50:15 -03:00
Laurence Isla and Steve Chavez
90e3a5e29f
Add test option for PostgreSQL 16
2023-09-21 15:38:46 -03:00
Robert Vollmert
e731241b97
test: optionally build postgrest with cabal in postgrest-loadtest
...
By default, postgrest-with-pgrst builds postgrest as a nix package,
which means that source changes cause a full rebuild. With this
change, running the loadtest as
PGRST_BUILD_CABAL=1 postgrest-loadtest
rebuilds directly using cabal, like postgrest-build. Note that
results between nix and cabal builds aren't necessarily comparable
due to differing build parameters.
2023-03-20 15:00:11 +01:00
Robert Vollmert
216dc833fd
test: add optional latency to postgrest-loadtest
...
This pipes data between client/postgrest and between
postgrest/database through a proxy that adds delay
(github.com/robx/slocat).
2023-03-20 15:00:11 +01:00
Robert and GitHub
5fd6b3956e
ci: Add workflow to seed cachix ( #2615 )
...
Fixes #2609 .
2023-01-16 16:56:48 +01:00
Robert and GitHub
f353711ed2
ci: build with nix on macos (and push to cachix) ( #2610 )
...
The idea is to ensure the macos nix build works, and to
build a cache in cachix to help local development on macos.
2023-01-12 11:45:10 +01:00
c8e4f38984
feat: Build against libpq 15
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
Co-authored-by: Wolfgang Walther <walther@technowledgy.de >
2022-11-02 08:25:07 +01:00
Wolfgang Walther
425ab70ec7
fix: Make UPSERT work with PostgreSQL 15
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-28 16:18:42 +02:00
Robert Vollmert and Wolfgang Walther
177ec4df85
downgrade postgis
2022-10-28 10:49:04 +02:00
Matt Votava and GitHub
f75e77cf60
Nix: allow building from pure-eval mode ( #2427 )
...
* default.nix: allow import with pure-eval enabled
* Update hercules-ci/gitignore
* shell.nix: fix import of default.nix
2022-08-15 20:44:02 -05:00
Laurence Isla and GitHub
4ac47df528
tests: Add tests for the pg-safeupdate library
2022-08-10 11:50:57 -05:00
Robert Vollmert
57bc3d805c
nix: bump nixpkgs version
...
- move from GHC 9.2.3 to GHC 9.2.4
- drop upstreamed openssl runtime dependency patch
2022-08-10 06:46:43 +02:00
Robert Vollmert
23e4c7fe6e
nix: bump nixpkgs version
2022-07-16 00:14:25 +02:00
steve-chavez
870f7a39b0
Add PostGIS GeoJSON support
...
Works for GET, POST, PATCH, PUT, DELETE, RPC.
2022-06-22 22:16:44 -05:00
Robert Vollmert
f3cbab6f82
nix: use GHC 9.2.2
2022-06-16 10:39:02 +02:00
Robert Vollmert
36ed7e2fb7
src, nix: hlint update
...
This pulls in an updated hlint version from nixpkgs, and fixes some
new eta-reduction warnings. (I don't particularly think this is more
readable, but I suppose being consistently hlint-clean is worth it.)
2022-06-14 19:13:55 +02:00
Robert Vollmert
8d8074d500
nix: keep old hlint
...
This keeps the pre-nixpkgs update hlint version, so we can defer
addressing the warnings to a follow-up PR.
2022-06-13 13:25:54 +02:00
Robert Vollmert
a9035bba2f
nix: use the matching weeder
...
weeder needs to be compiled with the same GHC that we build postgrest
with.
Before this change, we were relying on the fact that we happened
to set ${compiler} to the same ghc8107 as used by nixpkgs for
haskellPackages, now we explicitly take it from the correct
haskell package set.
2022-06-07 21:36:38 +02:00
Wolfgang Walther and Wolfgang Walther
32ff9dfb48
nix(feat): Add postgrest-loadtest
2021-11-27 10:57:29 +01:00
Wolfgang Walther and Wolfgang Walther
ab90bd24e0
nix(feat): Add postgrest-with-git and postgrest-with-pgrst tools
2021-11-27 10:57:29 +01:00
Wolfgang Walther and Wolfgang Walther
a65ac9b0f6
feat: drop support for pg 9.5
2021-11-24 19:42:53 +01:00
monacoremo
71262fbc5c
nix: Hook hsie check-aliases into postgrest-lint
2021-11-05 08:08:00 +01:00
monacoremo
d16a4a9a2b
nix: fix statix hints
2021-11-02 23:10:23 +01:00
monacoremo
0f95900822
nix: Upgrade hsie tool to GHC 8.10.7
2021-11-01 23:23:19 +01:00
monacoremo
8ac14447ef
nix: Update nixpkgs to latest unstable version
2021-11-01 23:23:19 +01:00
laurenceisla and GitHub
627c3c34b7
feat: Make GUC names for headers, cookies and jwt claims compatible with PostgreSQL v14
...
Getting the value for a header GUC on PostgreSQL v14 is done using `current_setting('request.headers')::json->>'name-of-header'` and in a similar way for `request.cookies` and `request.jwt.claims`
PostgreSQL versions below 14 can opt in to the new JSON GUCs by setting the `db-use-legacy-gucs` config option to false (true by default)
2021-10-12 12:58:52 -05:00
monacoremo
2982c5de2e
nix: Fix postgrest-check
2021-09-23 22:36:58 +02:00
monacoremo
d9b15adb35
ci: Use GitHub Actions for CI/CD
2021-08-08 06:42:59 +02:00
monacoremo
83cc358e1b
nix: Update static-haskell-nix and fix stripped executable
2021-07-15 09:41:52 +02:00
monacoremo
27c8dabd8d
nix: Use GHC 8.10.4 in Nix build environment
2021-07-15 09:41:52 +02:00
monacoremo
9568c4605a
nix: Update nixpkgs and static-haskell-nix
2021-07-15 09:41:52 +02:00
Wolfgang Walther and Wolfgang Walther
e5350d2d50
nix(refactor): Split cabalTools from devtools
...
This allows to use `postgrest-build` in CI without pulling in a lot of dependencies.
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
249d4117e0
nix(style): reorder tools in default.nix
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
b566481477
nix(refactor): Move shell scripts to subdirectory nix/tools
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
fe497fc438
nix(refactor): Add buildToolbox to streamline module interface towards shell.nix
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
2e73886adc
nix(refactor): Split memoryTest from tests.nix into memory.nix
2021-04-18 13:51:39 +02:00
Wolfgang Walther and Wolfgang Walther
32bac81d91
nix(refactor): Move withPostgresqlVersions and withAllVersions to new withTools
2021-04-18 13:51:39 +02:00
579a626de2
nix: move withtmpdb to separate file
...
Co-authored-by: Remo Rechkemmer <59358383+monacoremo@users.noreply.github.com >
2021-04-12 19:03:16 +02:00
Remo Rechkemmer and GitHub
65e7f9e846
nix: Add a tool for checking Haskell imports and exports ( #1768 )
2021-04-06 11:46:12 +02:00
Wolfgang Walther and GitHub
c7f0d42323
Add postgrest-coverage to show and upload hpc reports to codecov
2020-12-30 13:22:25 +01:00
monacoremo and Steve Chavez
9cfc66a6a4
upgrade nixpkgs and apply related fixes
2020-12-23 09:39:36 -05:00