[Nix-dev] PatchELF in Bundix's postBuild step

Maarten Hoogendoorn maarten at moretea.nl
Thu Dec 1 21:24:21 CET 2016


Hi,

I'm trying to build a gem that has vendored a statically compiled program
(that still depends on /lib64/ld-linux-x86-64.so.2).

I've tried to use patchelf in the postBuild in a bundlerEnv, but it's
complaining about not having write permissions to $out

I wrote a one-liner to check for .nix files that contained both the words
bundlerEnv and patchelf, but only the top-level/all-packages.nix matched
both.

I tried to create another derivation, that pulls all file in from the
bundlerEnv, and then patches the elf file, but it's resulting in the same
error message.

A nix-expression that reproduces this error is attached.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20161201/daf2e98c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default.nix
Type: application/octet-stream
Size: 1031 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20161201/daf2e98c/attachment.obj>


More information about the nix-dev mailing list