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?

  • One-Triggy-Boi@alien.top
    cake
    B
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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