Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Roger Qiu
When I exported a docker image to take look at what it is, it was also just a compressed set of tar'ed file trees. On 08/02/2017 7:46 AM, "Arnold Krille" wrote: > On Mon, 6 Feb 2017 18:33:19 -0600 Matthew Bauer > wrote: > > GitHub page: https://github.com/matthewbauer/nix-bundle > > > > I just w

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Arnold Krille
On Mon, 6 Feb 2017 18:33:19 -0600 Matthew Bauer wrote: > GitHub page: https://github.com/matthewbauer/nix-bundle > > I just wanted to post about a little project I've been working on. I'm > calling it "nix-bundle". > > Basically, what it does is: take a Nix closure, compress it into a > tarball,

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Matthew Bauer
> Any chance this could be combined with lethalman's work on turning > derivations into docker containers? Do you have a link to this project? All I can find is this blog post: http://lethalman.blogspot.com/2016/04/cheap-docker-images-with-nix_15.html We can get most of the advantages of the cont

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Matthew Bauer
> One question: Will it create a persistent /nix directory on the machine > the generated binary is running? No, it just creates a temporary chroot in /tmp and bind mounts the /nix/ there. As a side effect, though, you will not have access to your regular /nix/ directory within the bundle (which i

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Peter Hoeg
Nice work Matthew! I would vote for mirroring this tool in nixos github namespace (or even trying to make this project official one) as it can have big impact of propagating/implementing nix ideas into environments where it's not straight forward to use it. Any chance this could be combined wi

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Profpatsch
On 17-02-07 11:48am, Tomasz Czyż wrote: > I would vote for mirroring this tool in nixos github namespace (or even > trying to make this project official one) as it can have big impact of > propagating/implementing nix ideas into environments where it's not > straight forward to use it. > > What do

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Maarten Hoogendoorn
It could also be used to implement an offline NixOS installer. I guess it needs to run as root given that you're setting up a chroot env? Op 7 feb. 2017 12:50 p.m. schreef "Shea Levy" : +1! This is really cool. Tomasz Czyż writes: > I would vote for mirroring this tool in nixos github namespace

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Shea Levy
+1! This is really cool. Tomasz Czyż writes: > I would vote for mirroring this tool in nixos github namespace (or even > trying to make this project official one) as it can have big impact of > propagating/implementing nix ideas into environments where it's not > straight forward to use it. > > W

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Tomasz Czyż
I would vote for mirroring this tool in nixos github namespace (or even trying to make this project official one) as it can have big impact of propagating/implementing nix ideas into environments where it's not straight forward to use it. What do you think people? 2017-02-07 11:31 GMT+00:00 Tomas

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Tomasz Czyż
Matthew, very good tool, thank you for sharing. 2017-02-07 10:32 GMT+00:00 Domen Kožar : > Awesome! I will need this very soon, good timing :) > > On Tue, Feb 7, 2017 at 11:30 AM, Moritz Ulrich > wrote: > >> >> Hey Matthew, >> >> This sounds great! I'll give it a try :-) >> >> One question: Will

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Domen Kožar
Awesome! I will need this very soon, good timing :) On Tue, Feb 7, 2017 at 11:30 AM, Moritz Ulrich wrote: > > Hey Matthew, > > This sounds great! I'll give it a try :-) > > One question: Will it create a persistent /nix directory on the machine > the generated binary is running? > > Cheers > Mor

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-07 Thread Moritz Ulrich
Hey Matthew, This sounds great! I'll give it a try :-) One question: Will it create a persistent /nix directory on the machine the generated binary is running? Cheers Moritz Matthew Bauer writes: > GitHub page: https://github.com/matthewbauer/nix-bundle > > I just wanted to post about a lit

Re: [Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-06 Thread Graham Christensen
This is very neat! Thank you for sharing! Graham ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

[Nix-dev] nix-bundle: Bundle Nix derivations to run anywhere

2017-02-06 Thread Matthew Bauer
GitHub page: https://github.com/matthewbauer/nix-bundle I just wanted to post about a little project I've been working on. I'm calling it "nix-bundle". Basically, what it does is: take a Nix closure, compress it into a tarball, and turn that tarball into an executable using "Arx". The final resul