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

pkg-config is broken #2047

Closed
pawlowskialex opened this issue May 13, 2024 · 2 comments
Closed

pkg-config is broken #2047

pawlowskialex opened this issue May 13, 2024 · 2 comments
Assignees
Labels
bug Something isn't working triage Issue needs triage

Comments

@pawlowskialex
Copy link

pawlowskialex commented May 13, 2024

What happened?

pkg-config installed through devbox doesn't find any packages.

Steps to reproduce

  1. Run pkg-config --libs --cflags-only-I opus
Perhaps you should add the directory containing `opus.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opus' found

Same shell built with nix-shell works:

> nix-shell -p libopus pkg-config
> pkg-config --libs --cflags-only-I opus
-I/nix/store/6fq8qm00dfs85b94hf6ynvwcfijlqd3b-libopus-1.5.2-dev/include/opus -L/nix/store/s528j3f1c3x7hw3j0w43zm1wxi23c4qw-libopus-1.5.2/lib -lopus

Command

shell

devbox.json

{
  ...
  "packages": [
    "pkg-config@latest",
    "libopus@latest",
  ],
  ...
}

Devbox version

0.10.6

Nix version

nix (Nix) 2.18.2

What system does this bug occur on?

macOS (Apple Silicon)

Debug logs

No response

@pawlowskialex pawlowskialex added bug Something isn't working triage Issue needs triage labels May 13, 2024
@gcurtis gcurtis self-assigned this May 13, 2024
@gcurtis
Copy link
Collaborator

gcurtis commented May 13, 2024

Hi @pawlowskialex, could you try adding libopus with devbox add libopus -o out,dev? I think this might be because nix-shell is automatically adding the dev output to the environment.

@pawlowskialex
Copy link
Author

That worked, thank you! Feel free to close!

@Lagoja Lagoja closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issue needs triage
Development

No branches or pull requests

3 participants