[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hacks to install Guix packages without root

From: Ricardo Wurmus
Subject: Hacks to install Guix packages without root
Date: Thu, 26 Oct 2017 23:46:52 +0200
User-agent: mu4e 0.9.18; emacs 25.3.1


this blog post contains many great examples of how to deploy Guix
applications without root access:

I think that all of these methods should be wrapped up by Guix itself,
so that none of this has to be done manually.  I’d also like to include
Pjotr’s hack in this, which involves rewriting /gnu/store references.
It’s icky but effective and one of the reasons why Conda is so popular
(they rewrite references in their binaries as well, but less principled
than, say, grafts).

How about an extension of “guix pack” that will rewrite the /gnu/store
references to a user-provided directory before bundling things up in a
tarball?  I’d *really* like to be able to just use the tarball bundle
“guix pack” produces by default, but currently deploying it requires
root access or proot shenanigans at runtime.

How about making manual hacking with unshare and chroot obsolete by
including a simple executable in the pack that handles this rewriting
for the user…?  With that we would be one step closer to the user
experience of Docker — without having a runtime dependency on Docker.

What do you think?


GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC

reply via email to

[Prev in Thread] Current Thread [Next in Thread]