GithubHelp home page GithubHelp logo

Comments (2)

Mic92 avatar Mic92 commented on July 18, 2024

I would actually not go down this route for the following reasons:

  1. I don't think this would give you all the libraries needed. More complex executables often load own libraries that bring in more dependencies. In which case nix-ld would need to re-implement all of the library search and load mechanism of glibc in a bug compatible way.

  2. It might also significantly slow-down. As it now spawns nix-index on every executable and than download the packages, which could be for some use cases quite slow and require unexpected network access.

  3. Also the linked package in nix-index could be outdated or even in incorrect. When using nix-index I often see unrelated electron applications that vendor a certain library and come in the search index before the actual library. So without implementing a ranking this would suddenly turn into a lottery what is going to be downloaded & executed.

That's why I think having a configuration file (could be even locked up in the current or parent folders instead of a fixed path), would be a better approach. Than people could use arbitrary automation to find the right libraries, that than can be cached and does not lead to surprises and hard to debug behavior.

from nix-ld.

alexhulbert avatar alexhulbert commented on July 18, 2024

Ah I see. That makes a lot of sense. Thanks for your quick response.

from nix-ld.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.