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

Need a way to specify locally-provided libraries #77

Closed
soleera opened this issue Jul 4, 2023 · 4 comments
Closed

Need a way to specify locally-provided libraries #77

soleera opened this issue Jul 4, 2023 · 4 comments

Comments

@soleera
Copy link

soleera commented Jul 4, 2023

Some binaries come packaged with their own library files, however it doesn't look like there's any way to tell nix-alien not to treat these as external dependencies.

As an example, nix-ld includes a script for the Linux Zoom client . The client comes with its own Qt5 libraries which didn't need to be added to the nix-ld script, however nix-alien will still pick these up as external dependencies and will try to find a suitable candidate regardless.

It would be great if we had a way to provide a PATH-like string for nix-alien to check first before it begins searching for external libraries (or at least to add as another option to the list of candidates).

@thiagokokada
Copy link
Owner

One option would be for fzf show a SKIP option or something, that when selected it will not added those libraries to the environment.

WDYT @soleera ?

@thiagokokada
Copy link
Owner

thiagokokada commented Jul 4, 2023

One option would be for fzf show a SKIP option or something, that when selected it will not added those libraries to the environment.

This approach would mean that the auto selection of libraries when there is only one candidate would not work anymore (we would always have at least 2 candidates, the library itself and SKIP), but maybe this is better anyway.

@thiagokokada
Copy link
Owner

I was thinking about this feature and want to understand what is the value of it? Does Zoom does not work when loaded with the libs from nixpkgs? Are those simply ignored?

Because this use cases seems really niche and only usable for non-NixOS systems it looks like, while nix-alien generally focuses more in the NixOS use case (it works outside of it, but them generally it is easier to just use your distro package manager or something).

@thiagokokada
Copy link
Owner

Not completely related, but I just added a new --edit flag that allow you to quickly edit the generated Nix file if you want. This should allow the cases where you want to change something in the generated file.

@thiagokokada thiagokokada closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 2024
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

No branches or pull requests

2 participants