ITADN

32-bit nix ld

#67ClosedKoviRobi 创建于 2024-07-11
K
KoviRobicommented
Hi, I think nix-ld is very useful, and wanted to run some 32-bit programs recently. What I have done is patch `nix-ld-rs` (and probably `nix-ld` but I haven't tried that) to rename `NIX_LD*` to `NIX_LD32*` which has changed from `/run/current-system/sw/share/nix-ld` to `/run/current-system/sw/share/nix-ld32` and contains the `pkgsi686Linux` versions of the packages. Then made a NixOS module to use this, copied from the original one with relevant bits made 32-bit. https://github.com/KoviRobi/nixos-config/commit/4c0826faafcf19ee62967a4ecd6ca927f658dc56 It works for me, I suppose I'm asking/proposing it might be worth making this less of a hack? Perhaps add a feature flag for 32-bit (and I imagine to the C++ nix-ld), then update the package in NixOS and modify the module to support both? Any suggestions are appreciated, if it looks fine then I'll try to get around to implementing it (though these days I am terrible with finishing things, sorry)
关闭于 2024-07-12 3 条评论