GithubHelp home page GithubHelp logo

Comments (5)

inflation avatar inflation commented on August 17, 2024

Another thing is running x86_64 applications under Rosetta 2 in a VM. I could fetch an x86_64 version of nix-ld and manually symlink to /lib64/ld-linux-x86-64.so.2 and runs the application fine. It would be great to be configurable somehow.

from nix-ld.

KoviRobi avatar KoviRobi commented on August 17, 2024

I have something working, see NixOS/nixpkgs#326948

Though nix-ld (as opposed to nix-ld-rs) has an issue with environment variables that are not possible to set:

cannot execute /lib/ld-linux.so.2: You are trying to run an unpatched binary on nixos, but you have not configured NIX_LD or NIX_LD_i686-linux. See https://github.com/Mic92/nix-ld for more details

because of the hyphen-minus (-) which should be an underscore (_), perhaps

"-Dnix-system=${stdenv.system}"

should use

builtins.replaceStrings ["-"] ["_"] stdenv.system

See also nix-community/nix-ld-rs#67

from nix-ld.

Mic92 avatar Mic92 commented on August 17, 2024

Would it help if we would merge nix-ld-rs into nix-ld and make it the new implementation? This was at least my plan.

from nix-ld.

KoviRobi avatar KoviRobi commented on August 17, 2024

It would, I'm successfully using nix-ld-rs with 32-bit software, though I just tried and fixing the environment variables also makes this nix-ld work with the nixpkgs patch above. But I certainly understand not wanting to have to maintain both at the same time.

from nix-ld.

Mic92 avatar Mic92 commented on August 17, 2024

I merged nix-ld-rs into nix-ld now.

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.