Re: [Nix-dev] How to upgrade when Nix is too old to evaluate nixpkgs

2016-07-01 Thread Bjørn Forsman
On 30 June 2016 at 21:06, Bjørn Forsman wrote: > [...] > $ sudo nixos-rebuild switch > ... > building the system configuration... > updating GRUB 2 menu... > Can't exec "systemd-escape": No such file or directory at >

Re: [Nix-dev] How to upgrade when Nix is too old to evaluate nixpkgs

2016-06-30 Thread Bjørn Forsman
On 30 June 2016 at 17:38, Bjørn Forsman wrote: > On 30 June 2016 at 17:15, Vladimír Čunát wrote: >> On 06/30/2016 05:10 PM, Bjørn Forsman wrote: >>> The problem is that none of the build artifacts can be downloaded! >> >> Hydra no longer has the

Re: [Nix-dev] How to upgrade when Nix is too old to evaluate nixpkgs

2016-06-30 Thread Bjørn Forsman
On 30 June 2016 at 17:37, Shea Levy wrote: > With nodePackages.jsontool installed: > > $ nix-env -i $(curl -LH "Accept: Application/JSON" > http://hydra.nixos.org/job/nix/master/build.x86_64-linux/latest | json > buildoutputs.out.path) That's a neat trick. It would be great

Re: [Nix-dev] How to upgrade when Nix is too old to evaluate nixpkgs

2016-06-30 Thread Bjørn Forsman
On 30 June 2016 at 17:36, Domen Kožar wrote: > Could be, not sure at what verison it was added, but I think around first > NixOS release. You could try going with 13.10 first and then upgrade to > 16.03 I tried going back a few releases. But at NixOS 13.10, which required Nix 1.7

Re: [Nix-dev] How to upgrade when Nix is too old to evaluate nixpkgs

2016-06-30 Thread Bjørn Forsman
On 30 June 2016 at 17:15, Vladimír Čunát wrote: > On 06/30/2016 05:10 PM, Bjørn Forsman wrote: >> The problem is that none of the build artifacts can be downloaded! > > Hydra no longer has the binaries AFAIK, but they're in the cache, so > nix-store --realize /nix/store/foo

Re: [Nix-dev] How to upgrade when Nix is too old to evaluate nixpkgs

2016-06-30 Thread Shea Levy
With nodePackages.jsontool installed: $ nix-env -i $(curl -LH "Accept: Application/JSON" http://hydra.nixos.org/job/nix/master/build.x86_64-linux/latest | json buildoutputs.out.path) Bjørn Forsman writes: > On 30 June 2016 at 17:12, Domen Kožar wrote:

Re: [Nix-dev] How to upgrade when Nix is too old to evaluate nixpkgs

2016-06-30 Thread Domen Kožar
Could be, not sure at what verison it was added, but I think around first NixOS release. You could try going with 13.10 first and then upgrade to 16.03 On Thu, Jun 30, 2016 at 5:30 PM, Bjørn Forsman wrote: > On 30 June 2016 at 17:12, Domen Kožar wrote: >

Re: [Nix-dev] How to upgrade when Nix is too old to evaluate nixpkgs

2016-06-30 Thread Domen Kožar
Did you try running switch? It should know how to upgrade Nix. On Thu, Jun 30, 2016 at 5:10 PM, Bjørn Forsman wrote: > Hi all, > > I picked up an old NixOS installation from 2013, with nix 1.5.3. I > tried to upgrade to NixOS 16.03: > > $ nixos-rebuild build > ... >

[Nix-dev] How to upgrade when Nix is too old to evaluate nixpkgs

2016-06-30 Thread Bjørn Forsman
Hi all, I picked up an old NixOS installation from 2013, with nix 1.5.3. I tried to upgrade to NixOS 16.03: $ nixos-rebuild build ... error: evaluation aborted with the following error message: `This version of Nixpkgs requires Nix >= 1.10, please upgrade! See