Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Nix flake with newer nixpkgs version #287

Merged
merged 2 commits into from
Mar 2, 2023

Conversation

andrewsmith
Copy link
Contributor

I tried building Squawk recently in the Nix development shell and was running into a cargo build issue due to an older rustc version coming from nixpkgs: "error[E0658]: let...else statements are unstable". I see that the rust-toolchain is now using 1.67.0 and nixpkgs is providing 1.61.0.

I ran nix flake update to get newer pinned versions of nixpkgs and the flake-utils library (not really important for this problem). I also had to override the version of libpg_query that comes through nixpkgs because it isn't compatible with Squawk. Upon making these changes, nix develop and nix build work correctly again.

This brings in a newer version of nixpkgs with updates to the Rust
toolchain and plenty of other changes.
Squawk isn't able to handle the newest 15-* version of libpg_query that
is present in nixpkgs now. Because it is extracted from a newer version
of PostgreSQL, I believe the abstract syntax tree that it generates is
slightly different and Squawk isn't expecting those differences. For
that reason, pin libpg_query to 13-* until that is addressed in Squawk.
13-2.1.0 comes from what libpg_query-sys, the Rust bindings to
libpg_query is using.

The issue requiring the `allowUnsupportedSystem` directive was fixed as
part of NixOS/nixpkgs#179749 and is now no
longer necessary.
@netlify
Copy link

netlify bot commented Mar 1, 2023

👷 Deploy request for squawkhq pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7bbe32e

Copy link
Owner

@sbdchd sbdchd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sbdchd sbdchd added the automerge automerge with kodiak label Mar 2, 2023
@kodiakhq kodiakhq bot merged commit 3ed6985 into sbdchd:master Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge automerge with kodiak
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants