Skip to content

fix(nix): link nixpkgs' AWS-LC, as current nixpkgs requires - #7

Merged
vrmiguel merged 1 commit into
mainfrom
tembo/nix-system-aws-lc
Nov 9, 2026
Merged

vrmiguel merged 1 commit into
mainfrom
tembo/nix-system-aws-lc

Conversation

@vrmiguel

@vrmiguel vrmiguel commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

The Nix package job started failing on nixos-unstable with:

AWS_LC_SYS_USE_SYSTEM=1 requires a system-installed AWS-LC, but none was found.

nixpkgs' cargo setup hook now exports AWS_LC_SYS_USE_SYSTEM=1 for every Rust build (pkgs/build-support/rust/hooks/cargo-setup-hook.sh). That makes aws-lc-sys link a system AWS-LC instead of building its own. This follows nixpkgs' convention for that (as in jsonschema-cli): pkg-config in nativeBuildInputs and aws-lc in buildInputs.

Built and smoke-tested against the current nixos-unstable and against the older nixpkgs revision Tembo's monorepo pins, which doesn't set the variable yet. Cargo builds are unaffected; they still build AWS-LC from source.

This is what fails the Nix package check on #6.


Want tembo to make any changes? Add a comment with @tembo and i'll get back to work!

View on Tembo  Review in Tembo  View Agent Settings

Co-authored-by: tembo[bot] <208362400+tembo-io[bot]@users.noreply.github.com>
@tembo tembo Bot added the tembo Pull request created by Tembo label Nov 9, 2026
@vrmiguel
vrmiguel merged commit 3d24264 into main Nov 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tembo Pull request created by Tembo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant