[Nix-dev] Packaging software that mutates itself

Alexei Robyn shados at shados.net
Fri May 6 02:14:02 CEST 2016


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
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160506/eb223611/attachment.html 


More information about the nix-dev mailing list