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 <[email protected]>:

> 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
> [email protected]
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
Tomasz Czyż
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to