News for hackers. Stuff that matters.
Re:The Curse of NixOS by yaysyu on Monday January 24, 2022 @08:40AM (#30057434)
Does guix also have any equivalent to patchelf?
Re:The Curse of NixOS by georgyo on Monday January 24, 2022 @08:51AM (#30057535)
Guix uses patchelf.

Patchelf is very useful anytime you want to change the location of dynamic loaded libraries but don't want to set LD_LIBRARY_PATH.

It is used in more places than you might originally think.

Re:The Curse of NixOS by rekado on Monday January 24, 2022 @12:27PM (#30060824)
We don't use patchelf for any official package definition. We have a package for patchelf, but it's only really useful when you have pre-built binaries that you can't rebuild from source.
Re:The Curse of NixOS by georgyo on Monday January 24, 2022 @05:31PM (#30064971)
The main guix monorepo may set that hard requirement the everything just be built from source, but if you want to run closed source software than your only two options are make a fake FHS or use patchelf. Both methods have pros and cons. Only patchelf makes the result work well with other closed source programs.

While from a philosophical point of view guix is pure, real world usage often needs closed source software.

Re:The Curse of NixOS by rekado on Thursday January 27, 2022 @05:05AM (#30098475)
Yes, for pre-built binaries you can't really get around patchelf. For example, that's also how CUDA is packaged for Guix.
Re:The Curse of NixOS by carlhjerpe on Monday January 24, 2022 @11:24AM (#30059729)
GoboLinux also uses patchelf.