From 29cd7d195c73a6842055812801b0d883da5df5c5 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Tue, 16 Apr 2024 15:14:40 -0500 Subject: [PATCH] nix: add instructions for haskell-packages.nix --- nix/overlays/haskell-packages.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nix/overlays/haskell-packages.nix b/nix/overlays/haskell-packages.nix index b6277e0e9..b7c0f3b96 100644 --- a/nix/overlays/haskell-packages.nix +++ b/nix/overlays/haskell-packages.nix @@ -36,12 +36,14 @@ let # - When adding a new library version here, postgrest.cabal and stack.yaml must also be updated # # Notes: - # - This should NOT be the first place to start managing dependencies. Check postgrest.cabal. - # - When adding a new package version here, you have to update stack: - # + For stack.yml add: + # - When adding a new package version here, update cabal. + # + Update postgrest.cabal with the package version + # + Update cabal.project.freeze. Just set it to the current timestamp then run `cabal build`. It will tell you the correct timestamp for the index state. + # - When adding a new package version here, you have to update stack. + # + To update stack.yaml add: # extra-deps: # - - - # + For stack.yml.lock, CI should report an error with the correct lock, copy/paste that one into the file + # + For stack.yaml.lock, CI should report an error with the correct lock, copy/paste that one into the file # - To modify and try packages locally, see "Working with locally modified Haskell packages" in the Nix README. # Before upgrading fuzzyset to 0.3, check: https://github.com/PostgREST/postgrest/issues/3329