this post was submitted on 17 Nov 2023
2 points (100.0% liked)

Nix

10 readers
1 users here now

founded 1 year ago
MODERATORS
 

I'm trying to package this. I followed the wiki and when I tried to run it with autopatchelf hook I got this:

setting interpreter of /nix/store/bwxdfc238al3mmvsqx7qf3a1l4i3ip3l-keymapp-21.07.0/bin/keymapp
searching for dependencies of /nix/store/bwxdfc238al3mmvsqx7qf3a1l4i3ip3l-keymapp-21.07.0/bin/keymapp
    libusb-1.0.so.0 -> not found!
    libudev.so.1 -> not found!
    libwebkit2gtk-4.0.so.37 -> not found!
    libgtk-3.so.0 -> not found!
    libgdk-3.so.0 -> not found!
    libgdk_pixbuf-2.0.so.0 -> not found!
    libgio-2.0.so.0 -> not found!
    libjavascriptcoregtk-4.0.so.18 -> not found!
    libgobject-2.0.so.0 -> not found!
    libglib-2.0.so.0 -> not found!
    libstdc++.so.6 -> not found!
    libgcc_s.so.1 -> not found!
auto-patchelf: 12 dependencies could not be satisfied

I figured out that the first (and actually second too) get resolved by adding libusb1, but I have trouble figuring out the name of the package that contains libwebkit2gtk-4.0.so.37.

Is there some tool that could tell me which packages do I need to install to get these files? Or what is the best way to do this?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 11 months ago

This is my current derivation if you want to take a look, but I think that it's correct because I just copy-pasted it from wiki.

I think I just need to figure out which packages to install to provide all required libraries.

[–] [email protected] 1 points 11 months ago (1 children)

Try using Nix-index-db. Generally when “shared library hunting”, its your best friend.

Add them much like shown in the wiki (adding them to lib.makeLibraryPath), such like this

[–] [email protected] 1 points 11 months ago

Ah thanks. I'm blind I completely missed the relevant wiki section that shows how to use nix-index.