[Nix-dev] Packaging software that mutates itself

Tomasz Czyż tomasz.czyz at gmail.com
Fri May 6 15:25:43 CEST 2016


Alexei,

looks like steam does exactly that trick, just per user basis rather than
on the system level. It keeps itself in ~/.local/share/steam I think, and
applications are kept there as well and installed there but this are steam
internals (nothing to do with nixos packaging).

2016-05-06 1:14 GMT+01:00 Alexei Robyn <shados at shados.net>:

> I suggest you look into the way Steam is packaged, as it also self-updates
> (and updates other applications under its control).
>
>
> On Fri, May 6, 2016, at 09:13 AM, Tomasz Czyż wrote:
>
> 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ż
> *_______________________________________________*
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
>
> _______________________________________________
> 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/003ada3a/attachment.html 


More information about the nix-dev mailing list