[Nix-dev] Packaging software that mutates itself

Tomasz Czyż tomasz.czyz at gmail.com
Fri May 6 01:13:55 CEST 2016


IMHO, this is pretty simple.
You pack "first/original" version into immutable store /nix/store. You add
tiny wrapper around it, which checks if /var/lib/<app> exists, if not,
create directory and copy binary there and run it there. If file already
exists in /var/lib, execute it directly. Application can update itself
there.

2016-05-05 23:07 GMT+01:00 Nikita Karetnikov <nikita at karetnikov.org>:

> On Fri, May 06, 2016 at 01:02:15AM +0300, Nikita Karetnikov wrote:
> > The server is controlled by other people.
>
> I'd like to add that I'm assuming that these people are not malicious.  In
> this
> case, I'm more worried about a misconfigured package that might break my
> system
> in some way.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
Tomasz Czyż
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160506/c2460b42/attachment-0001.html 


More information about the nix-dev mailing list