Wolfgang Walther
bd61cf9b60
nix: re-introduce postgrest-nixpkgs-upgrade
...
Resolves #4161
2025-07-11 15:53:06 +00:00
Taimoor Zaeem and GitHub
38332d9462
nix: add commitlint to lint commit messages ( #4128 )
...
Adds a new script `postgrest-commitlint` to lint commit messages.
2025-06-17 16:15:14 -05:00
Wolfgang Walther
95e36fdad9
nix: avoid rebuilding memory tests when entering nix-shell
...
The memory tests are now run in the same way as the regular tests.
2025-03-30 18:57:39 +00:00
Wolfgang Walther
149be6bc33
nix: expose nixpkgs input on flake
...
This also moves the pin for nixpkgs into flake.lock instead of our
custom file. Even for the classic interface via default.nix, the pin
will be loaded from flake.lock, thus everything stays in-sync.
2025-03-28 09:22:34 +00:00
Wolfgang Walther
2b91df8004
nix: Disable building profiled or dynamic libraries by default
...
We never need dynamic haskell libraries, because even the dynamic builds
only dynamically link non-haskell dependencies, but always link haskell
dependencies statically.
Profiled libraries are only required when running the memory test, so
explicitly enable them for the profiled package.
This also means, that we don't need to hide the memory test behind a
feature flag anymore. The reason always was assumed to be the big number
of rebuilds required for it. I assume ever since we moved off of
static-haskell-nix and back to nixpkgs-based builds, we have been
building profiled libraries for all our dependencies anway.
2025-03-22 19:37:03 +00:00
Wolfgang Walther
57d11c7914
chore: Update nix/README's command list
...
We had added the release tools by default a while ago.. and by now have
many more tools available.
2025-03-22 19:37:03 +00:00
Laurence Isla and Wolfgang Walther
a1f2ecadda
nix: Move docs tools into core infrastructure
2024-02-18 13:10:00 +01:00
Robert Vollmert
efd65ff1f4
nix: add update-nix-fetchgit to shell
2022-09-19 20:49:11 +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
Robert Vollmert
34d0f34620
nix: bashCompletion -> bash-completion
2022-06-13 13:25:54 +02:00
steve-chavez
2eaf81334e
nix: local history for nix-shell
2022-04-18 15:48:03 -05:00
Wolfgang Walther and Wolfgang Walther
5a8d9b1246
nix(feat): Add bash completion for git references
2021-11-27 10:57:29 +01:00
Wolfgang Walther and Wolfgang Walther
32ff9dfb48
nix(feat): Add postgrest-loadtest
2021-11-27 10:57:29 +01:00
monacoremo
d16a4a9a2b
nix: fix statix hints
2021-11-02 23:10:23 +01:00
monacoremo
d9b15adb35
ci: Use GitHub Actions for CI/CD
2021-08-08 06:42:59 +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
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
de73ced34a
nix(feat): Change memoryTests shell argument to memory
...
Avoids confusion with `memoryTest`.
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
2559d32912
nix(feat): Add argbash bash completion support
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
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 Remo Rechkemmer
ab6f90aa78
nix: Add postgrest-with-* tools to run with temporary databases of different versions
2021-01-04 23:14:44 +01:00
Wolfgang Walther and Wolfgang Walther
d218a9eaff
dev: improve postgrest-watch experience
...
* speed up io tests
* avoid infinite loop while watching io tests
* improve auto-complete with postgrest-watch postgrest-run
* detect when files are added or deleted
2020-12-05 16:47:50 +01:00
monacoremo and Wolfgang Walther
10a70d4e52
add autocompletion for postgrest-watch
2020-12-01 22:13:41 +01:00
Wolfgang Walther and GitHub
f2cb91740e
Use cabal v2-exec to run io tests, include io tests in nix-shell by default; remove obsolete ncat dependency ( #1673 )
...
Use cabal v2-exec to run io tests, include io tests in nix-shell by default; remove obsolete ncat dependency
2020-12-01 00:37:45 +01:00
07cb47e6ac
Improve dev tools in the Nix environment ( #1666 )
...
* Improve dev tools in the nix environment
Added postgrest-build, postgrest-run, postgrest-clean, postgrest-check
and postgrest-watch tools. Changed order of postgrest-test-spec-all to
run backwards from pg13 to pg9.5. Added shellcheck to lint shell scripts
in nix environment.
Co-authored-by: monacoremo <monacoremo>
2020-11-30 22:21:19 +01:00
Remo Rechkemmer and GitHub
69b09e312a
Nixify io and memory tests ( #1538 )
...
* Include tests for io and memory in the Nix environment.
* include spec tests in nix-shell by default
* install the io and memory tests in CI
2020-05-28 12:45:14 -05:00
Remo Rechkemmer and GitHub
48c9ac36b1
Bump nixpkgs and simplify/clean up nix setup ( #1529 )
...
* Refactor tests and fix README
* fix linting hints from new hlint version
* postgrest-style with new nixpkgs-fmt
2020-05-20 21:30:20 -05:00
Remo Rechkemmer and GitHub
289bb66f56
Reduce size of the static docker image by patching the Nix openssl package ( #1528 )
...
* hook docker images into the default builds
2020-05-20 11:49:11 -05:00
Remo Rechkemmer and GitHub
7c0fbf9b3f
Add static build with Nix ( fixes #1295 ) ( #1494 )
...
* Include modifications to nixpkgs and static-haskell-nix as patches.
* use the patched static-haskell-nix version
* Add cachix postgrest
2020-05-12 13:31:37 -05:00
Remo and GitHub
dbc3aa28c4
Add scripts for linting and styling with all dependencies managed by Nix ( #1501 )
...
* Integrate the style and lint dependencies with Nix
* Add documentation on the nix styling scripts.
2020-04-27 15:04:50 -05:00
Remo and GitHub
1c19bbde93
Run tests against several PostgreSQL versions using Nix ( #1492 )
...
* Show test output with postgrest-test-spec* in nix-shell
* Test output in color
2020-04-24 11:05:37 -05:00
Remo and Steve Chavez
178c5d54d5
Integrate stack in the nix-shell environment
2020-04-22 14:30:02 -05:00
Remo and GitHub
24db4a1e25
Basics for building PostgREST with Nix ( #1489 )
...
* Add GHC options used with stack to postgrest.cabal
* Add a Nix derivation for just the executable.
2020-04-21 11:59:00 -05:00
Robert and Steve Chávez
23ca27d27e
Update stackage GHC to 8.4.4 ( #1322 )
...
* Update stack.yaml to lts-12.26 (GHC 8.4.4) with simplified nix config
(On GHC 8.6.5, profiled build was exiting with:
-- While building package postgrest-5.2.0 using:
/home/circleci/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build lib:postgrest exe:postgrest --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure (-9) (THIS MAY INDICATE OUT OF MEMORY)
Exited with code 1)
* stack.yaml: Add postgresql to nix packages
2019-06-11 13:20:04 -05:00
Steve Chávez and GitHub
16af470a99
Add shell.nix ( #1298 )
2019-05-22 10:26:36 -05:00