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

2014-11-10 Thread Vladimír Čunát
On 11/10/2014 01:50 PM, Juho Östman wrote: Do you think this would be a bad idea? It doesn't seem worth the work needed, as there other ways of running as if from a different directory, and you don't even need to be root. https://github.com/NixOS/nix/issues/16#issuecomment-57822045 Vladimir

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

2014-11-10 Thread Juho Östman
10.11.2014, 15:20, Tomasz Kontusz kirjoitti: > This might work, the question is: how many packages would really be > relocatable? > Many formats will lock or restrict the path's length based on the actual > part used when building, or mangle it in a hard to spot ways > (compression, multibyte encod

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

2014-11-10 Thread Juho Östman
04.11.2014, 11:38, Eelco Dolstra wrote: > Hi, > > On 04/11/14 10:37, Michael Raskin wrote: > >>> No, this is not possible unless you do static linking or some deep >>> ld-linux/patchelf magic. For instance, my-app will have references to Glibc >>> in >>> the Nix store, which are not relocatable.

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

2014-11-04 Thread Paul Colomiets
Hi Anders, On Tue, Nov 4, 2014 at 1:36 AM, 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

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

2014-11-04 Thread Nathan Bijnens
You could also use Nix inside Docker. This way you should only install Docker on your host. Nathan. --- nat...@nathan.gs | nathan.gs | @nathan_gs | linkedin.com/in/nbijnens On Tue, Nov 4, 2014 at

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

2014-11-04 Thread Andreas Herrmann
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

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

2014-11-04 Thread Rok Garbas
On Tue, Nov 4, 2014 at 10:38 AM, Eelco Dolstra wrote: > Hi, > > On 04/11/14 10:37, Michael Raskin wrote: > >>> No, this is not possible unless you do static linking or some deep >>> ld-linux/patchelf magic. For instance, my-app will have references to Glibc >>> in >>> the Nix store, which are not

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

2014-11-04 Thread Eelco Dolstra
Hi, On 04/11/14 10:37, Michael Raskin wrote: >> No, this is not possible unless you do static linking or some deep >> ld-linux/patchelf magic. For instance, my-app will have references to Glibc >> in >> the Nix store, which are not relocatable. > > Technically, one could install a second Nix in

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

2014-11-04 Thread Michael Raskin
>> 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 tool

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

2014-11-04 Thread Lluís Batlle i Rossell
On Tue, Nov 04, 2014 at 10:23:08AM +0100, Eelco Dolstra wrote: > Hi, > > On 04/11/14 00:36, Anders Papitto wrote: > > > 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

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

2014-11-04 Thread Luca Bruno
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. Ideall

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

2014-11-04 Thread Eelco Dolstra
Hi, On 04/11/14 00:36, Anders Papitto wrote: > 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 wou

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

2014-11-04 Thread Anders Papitto
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 av