P.S. I have 14.10pre44331.25351dd here.

--
Кирилл Елагин


On Fri, Jun 13, 2014 at 8:37 PM, Kirill Elagin <[email protected]> wrote:

> I get 1h8s… on my PC, so you should probably check the version of nixpkgs
> checkout and all that stuff.
> I have no idea why one can get different caches, but I hope that stdenv
> can't mutate depending on kernel version etc…
>
>
> --
> Кирилл Елагин
>
>
> On Fri, Jun 13, 2014 at 8:25 PM, Mateusz Kowalczyk <
> [email protected]> wrote:
>
>> On 06/13/2014 06:06 PM, Kirill Elagin wrote:
>> > If I got it right, you just create exactly the same environment on your
>> own
>> > box with nix store wherever you like (its location is controlled by
>> > NIX_STORE_DIR) and build everything from source, thus you get binaries
>> with
>> > custom path to the store hard-wired. Then you copy those to your target
>> > machine.
>> >
>> >
>> > --
>> > Кирилл Елагин
>> >
>>
>> I don't seem to be able to reproduce this. On my target box I have:
>>
>> -bash-4.1$ nix-channel --list
>> nixpkgs http://nixos.org/channels/nixpkgs-unstable
>> -bash-4.1$ NIX_STORE_DIR=/u/c/mk440/localsoftware/nix/store
>> nix-instantiate --readonly-mode '<nixpkgs>' -A hello
>> warning: you did not specify `--add-root'; the result might be removed
>> by the garbage collector
>>
>> /u/c/mk440/localsoftware/nix/store/bxfj2spplwca162s2yklrxngjj4cb4r7-hello-2.9.drv
>> -bash-4.1$ uname -a
>> Linux lcpu1.bath.ac.uk 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7
>> 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>>
>> And on the box I wish to compile on:
>>
>> [shana@lenalee:~]$ nix-channel --list
>> nixpkgs-local http://nixos.org/channels/nixpkgs-unstable
>> nixos http://nixos.org/channels/nixos-unstable
>>
>> [shana@lenalee:~]$
>> NIX_PATH="nixpkgs-local=/home/shana/.nix-defexpr/channels/nixpkgs-local"
>> NIX_STORE_DIR=/u/c/mk440/localsoftware/nix/store nix-instantiate
>> --readonly-mode '<nixpkgs-local>' -A hello
>> warning: you did not specify `--add-root'; the result might be removed
>> by the garbage collector
>>
>> /u/c/mk440/localsoftware/nix/store/1h8sxxyp8jn832l0fn3d1wf43jcbcf4b-hello-2.9.drv
>> [shana@lenalee:~]$ uname -a
>> Linux lenalee 3.12.21 #1-NixOS SMP Thu Jan 1 00:00:01 UTC 1970 x86_64
>> GNU/Linux
>>
>> So I end up with two different hashes. What could I be overlooking? If
>> it's about software outside of the nix store then I don't think it's
>> feasible to get that to match up.
>>
>> > On Fri, Jun 13, 2014 at 7:56 PM, Mateusz Kowalczyk <
>> [email protected]>
>> > wrote:
>> >
>> >> On 06/13/2014 02:33 PM, Vladimír Čunát wrote:
>> >>> On 06/13/2014 02:19 PM, Andreas Herrmann wrote:
>> >>>> Given a case where you can't get the admin to give you `/nix`, and
>> where
>> >>>> you have space/compute constraints on the target, would it be
>> possible
>> >>>> to create the full nix install on your own local machine in the
>> correct
>> >>>> paths, and then just copy it to the target? Maybe a little like your
>> >>>> own, small, on-demand hydra...
>> >>>
>> >>> It should be enough to just define NIX_STORE_DIR when using the nix
>> >> tools.
>> >>>
>> >>> However, there might not be an easy way ready for installing the nix
>> >>> tools itself without root privileges. Some description of the whole
>> >>> process is e.g.
>> >>>
>> >>
>> https://nixos.org/wiki/How_to_install_nix_in_home_(on_another_distribution)
>> >>>
>> >>>
>> >>> Vlada
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> _______________________________________________
>> >>> nix-dev mailing list
>> >>> [email protected]
>> >>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>> >>>
>> >>
>> >> Can you elaborate on how using NIX_STORE_DIR would work? I ran into a
>> >> space constraint problem (apparently 1.5GB to install GCC is not
>> enough)
>> >> so next thing I want to try is to compile it on my home computer and
>> >> then send it over to my restricted target box. How would the whole
>> >> process look like?
>> >>
>> >> Do I need to create the store directory at same path it is at on the
>> >> target box? What commands can I use to transfer the built GCC between
>> >> stores?
>> >>
>> >>
>> >> --
>> >> Mateusz K.
>> >> _______________________________________________
>> >> nix-dev mailing list
>> >> [email protected]
>> >> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>> >>
>> >
>>
>>
>> --
>> Mateusz K.
>> _______________________________________________
>> nix-dev mailing list
>> [email protected]
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>
>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to