[Nix-dev] deploying nix-built software to non-nix linux systems

Rok Garbas rok at garbas.si
Tue Nov 4 10:46:37 CET 2014


On Tue, Nov 4, 2014 at 10:38 AM, Eelco Dolstra
<eelco.dolstra at logicblox.com> wrote:
> Hi,
>
> On 04/11/14 10:37, Michael Raskin wrote:
>
>>> No, this is not possible unless you do static linking or some deep
>>> ld-linux/patchelf magic. For instance, my-app will have references to Glibc in
>>> the Nix store, which are not relocatable.
>>
>> Technically, one could install a second Nix instance with
>> /home/target-user/nix instead of /nix as Nix root.
>
> This is not a solution because the resulting binaries are still not relocatable.
>

Anders:
you would need to copy whole "closure" of your app (all runtime dependencies).
this would mean a bigger download of your app but would increase the
reliability of the deployment since you ship with whole environment

-- 
Rok Garbas


More information about the nix-dev mailing list