juspay / todo-app

A demo Haskell app showing the use of Nix with flake-parts to simplify various dev workflows
MIT License
6 stars 2 forks source link

Use latest `nixpkgs` to get latest GHC #12

Open srid opened 1 month ago

srid commented 1 month ago

Current blocked by broken pkgs.postgrest on darwin:

image
shivaraj-bh commented 1 month ago

https://github.com/NixOS/nixpkgs/issues/347885

dbaynard commented 3 weeks ago

I came here from the nixpkgs issue above. I've a workaround at flakes/databases/postgres/postgrest-bin.nix at main · fore-stun/flakesnix build -L 'github:fore-stun/flakes#postgrest-bin' should work and you can override the postgresql input to that derivation if needed. I've pinned it to the same version as nixpkgs, but you're welcome to PR support for a different version, etc.

This isn't appropriate for the nixpkgs issue (the nixpkgs Cabal is patched to remove some nondeterminism) but it might unblock you here.

shivaraj-bh commented 3 weeks ago

@dbaynard thanks for the workaround! Also, I spent sometime to check for a fix upstream and I believe it should be solved in the next postgrest release, see: https://github.com/NixOS/nixpkgs/issues/347885#issuecomment-2425970872

dbaynard commented 3 weeks ago

I knew I'd seen something about this — glad you were able to find it.