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

nix: include darwin deps inside devShell, too #2524

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

thoughtpolice
Copy link
Member

Summary: Without devShell providing the needed Darwin-specific inputs, cargo build does not work inside a nix develop or direnv environment; libgit2 in particular fails on being able to find the Security framework.

The actual nix build invocation however does work because we correctly include those dependencies in the package buildInputs. So just factor them out, and use them in both places.

Change-Id: I484bf381ca31c29c4c39fb6d184bdd21

Summary: Without `devShell` providing the needed Darwin-specific inputs, `cargo
build` does not work inside a `nix develop` or `direnv` environment; libgit2 in
particular fails on being able to find the Security framework.

The actual `nix build` invocation however *does* work because we correctly
include those dependencies in the package `buildInputs`. So just factor them
out, and use them in both places.

Signed-off-by: Austin Seipp <[email protected]>
Change-Id: I484bf381ca31c29c4c39fb6d184bdd21
@thoughtpolice thoughtpolice self-assigned this Nov 4, 2023
@thoughtpolice thoughtpolice enabled auto-merge (rebase) November 4, 2023 19:23
@thoughtpolice thoughtpolice merged commit 2401bf9 into main Nov 4, 2023
14 checks passed
@thoughtpolice thoughtpolice deleted the aseipp/push-wworumswsqol branch November 4, 2023 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants