Re: [Nix-dev] Copy a closure to machine with no Nix installed on it

2017-03-02 Thread Volth
Oh, I forgot about it.

Anyway, so far I need to distribute test scripts, not the production
software. It would be too slow to upload big bundle each time.
"nix-copy-closure" or "rsync" would reuse common files from previous
uploads.

On 3/2/17, David Kleuker  wrote:
> Hello Volth,
>
> some days ago https://github.com/matthewbauer/nix-bundle was mentioned on
> the ML.
>
> I havn't tested it, so i can't say how mature and stable it is, but it
> should be exactly what you are looking for.
>
> When you have tested it, i would like to know if it works for you.
>
> kind regards
> davidak
>
>>
>> Volth  hat am 2. März 2017 um 17:38 geschrieben:
>>
>> Hello
>>
>> What is a good way to copy a closure to a Linux machine where Nix is
>> not installed (and it is tricky to install: 1. there is only root
>> account and 2. there may be no Internet access) ?
>>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Copy a closure to machine with no Nix installed on it

2017-03-02 Thread Volth
Yes, "nix-store -qR ..." and then "rsync" seems a simple and promising solution.
Thank you!

On 3/2/17, Tomasz Czyż  wrote:
> I assume you could do
> nix-store --export or nix-store --dump to prepare archive
> or you can query nix store for all dependnecies and with that list you can
> copy them using method of your choice
>
>
> 2017-03-02 16:38 GMT+00:00 Volth :
>
>> Hello
>>
>> What is a good way to copy a closure to a Linux machine where Nix is
>> not installed (and it is tricky to install: 1. there is only root
>> account and 2. there may be no Internet access) ?
>>
>> "nix-copy-closure" expects "nix-store" on the target machine.
>>
>> Would "nix-store" be a single executable with no dependencies, it
>> could be uploaded beforehand, but it has a lot of dependencies so its
>> uploading is also the task of uploading a closure to a machine without
>> Nix...
>> ___
>> nix-dev mailing list
>> nix-dev@lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>
>
>
> --
> Tomasz Czyż
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Copy a closure to machine with no Nix installed on it

2017-03-02 Thread David Kleuker
Hello Volth,

some days ago https://github.com/matthewbauer/nix-bundle was mentioned on the 
ML.

I havn't tested it, so i can't say how mature and stable it is, but it should 
be exactly what you are looking for.

When you have tested it, i would like to know if it works for you.

kind regards
davidak

> 
> Volth  hat am 2. März 2017 um 17:38 geschrieben:
> 
> Hello
> 
> What is a good way to copy a closure to a Linux machine where Nix is
> not installed (and it is tricky to install: 1. there is only root
> account and 2. there may be no Internet access) ?
> 
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Copy a closure to machine with no Nix installed on it

2017-03-02 Thread Tomasz Czyż
Also, somebody mentioned https://github.com/matthewbauer/nix-bundle
recently which is nice way to distribute some software to non nix
environments.

2017-03-02 16:49 GMT+00:00 Bjørn Forsman :

> On 2 March 2017 at 17:38, Volth  wrote:
> > Hello
> >
> > What is a good way to copy a closure to a Linux machine where Nix is
> > not installed (and it is tricky to install: 1. there is only root
> > account and 2. there may be no Internet access) ?
> >
> > "nix-copy-closure" expects "nix-store" on the target machine.
> >
> > Would "nix-store" be a single executable with no dependencies, it
> > could be uploaded beforehand, but it has a lot of dependencies so its
> > uploading is also the task of uploading a closure to a machine without
> > Nix...
>
> Don't know how to do it without Nix, but Nix can be installed offline.
> Get the binary tarball for you system:
>
> http://nixos.org/releases/nix/nix-1.11.7/nix-1.11.7-x86_64-linux.tar.bz2
>
> Copy it to your target machine, unpack and run ./install from the
> extracted tree.
>
> That creates a single user install. It requires sudo to create the
> /nix directory, everything else is owned and run by your user. (There
> are ways to run nix from $HOME or wherever, I think "proot" is a good
> search word.)
>
> Once you have nix you have nix-copy-closure.
>
> Hope that helps.
>
> Best regards,
> Bjørn Forsman
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
Tomasz Czyż
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Copy a closure to machine with no Nix installed on it

2017-03-02 Thread Tomasz Czyż
I assume you could do
nix-store --export or nix-store --dump to prepare archive
or you can query nix store for all dependnecies and with that list you can
copy them using method of your choice


2017-03-02 16:38 GMT+00:00 Volth :

> Hello
>
> What is a good way to copy a closure to a Linux machine where Nix is
> not installed (and it is tricky to install: 1. there is only root
> account and 2. there may be no Internet access) ?
>
> "nix-copy-closure" expects "nix-store" on the target machine.
>
> Would "nix-store" be a single executable with no dependencies, it
> could be uploaded beforehand, but it has a lot of dependencies so its
> uploading is also the task of uploading a closure to a machine without
> Nix...
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
Tomasz Czyż
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Copy a closure to machine with no Nix installed on it

2017-03-02 Thread Bjørn Forsman
On 2 March 2017 at 17:38, Volth  wrote:
> Hello
>
> What is a good way to copy a closure to a Linux machine where Nix is
> not installed (and it is tricky to install: 1. there is only root
> account and 2. there may be no Internet access) ?
>
> "nix-copy-closure" expects "nix-store" on the target machine.
>
> Would "nix-store" be a single executable with no dependencies, it
> could be uploaded beforehand, but it has a lot of dependencies so its
> uploading is also the task of uploading a closure to a machine without
> Nix...

Don't know how to do it without Nix, but Nix can be installed offline.
Get the binary tarball for you system:

http://nixos.org/releases/nix/nix-1.11.7/nix-1.11.7-x86_64-linux.tar.bz2

Copy it to your target machine, unpack and run ./install from the
extracted tree.

That creates a single user install. It requires sudo to create the
/nix directory, everything else is owned and run by your user. (There
are ways to run nix from $HOME or wherever, I think "proot" is a good
search word.)

Once you have nix you have nix-copy-closure.

Hope that helps.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Copy a closure to machine with no Nix installed on it

2017-03-02 Thread Volth
Hello

What is a good way to copy a closure to a Linux machine where Nix is
not installed (and it is tricky to install: 1. there is only root
account and 2. there may be no Internet access) ?

"nix-copy-closure" expects "nix-store" on the target machine.

Would "nix-store" be a single executable with no dependencies, it
could be uploaded beforehand, but it has a lot of dependencies so its
uploading is also the task of uploading a closure to a machine without
Nix...
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev