[Nix-dev] deploying nix-built software to non-nix linux systems

Nathan Bijnens nathan at nathan.gs
Tue Nov 4 11:36:13 CET 2014


You could also use Nix inside Docker. This way you should only install
Docker on your host.

Nathan.

---
nathan at nathan.gs | nathan.gs
<http://nathan.gs?utm_source=footer&utm_medium=email&utm_campaign=n> |
@nathan_gs <http://twitter.com/nathan_gs> | linkedin.com/in/nbijnens

On Tue, Nov 4, 2014 at 10:54 AM, Andreas Herrmann <andreash87 at gmx.ch> wrote:

> There was a post here recently about using proot to install Nix in $HOME
> [1].
>
> I haven't used it myself, but I could imagine that you could install a
> closure of your package and provide a wrapper script which configures the
> environment and uses proot to run your app.
>
> [1]:
> https://nixos.org/wiki/How_to_install_nix_in_home_%28on_another_distribution%29
>
> Best, Andreas
>
> On Tuesday 04 November 2014 10:24:15 Luca Bruno wrote:
> > On 04/11/2014 00:36, Anders Papitto wrote:
> > > Hello,
> > >
> > > I'm interested in using nix/nixos to build an application with its
> > > full set of dependencies, and then deploy it to non-nixos machines as
> > > a self-contained package (up to and including the system libraries),
> > > without root privileges. Ideally I would like to not require that any
> > > nix tools be available on the target system. The perfect workflow
> > > would be something like
> > >
> > > # on any linux system
> > > $ wget https://some/path/to/my-app.tar.gz
> > > $ tar -xf my-app.tar.gz
> > > $ ./my-app/bin/my-app # run the application -> it should not try to
> > > access anything outside ./my-app
> > >
> > > Is this possible? I haven't been able to find any resources on
> > > deploying to a non-nix systems.
> > You don't have to install nix to run packages on other systems, you can
> > simply copy the closure of it.
> > However usually packages are stored into /nix, which requires root
> > access. You may
> > try something like fakechroot or proot.
> > _______________________________________________
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141104/09b28aa4/attachment.html 


More information about the nix-dev mailing list