Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-13 Thread Nikita Karetnikov
Are you doing chroot builds? No, '/etc/nix/nix.conf' is empty. Also, the following errors appeared after that error. [root@nixos:/]# ls sh: /run/current-system/sw/bin/ls: No such file or directory [root@nixos:/]# cd [root@nixos:~]# whoami sh: /run/current-system/sw/bin/whoami: No such file

[Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Nikita Karetnikov
Hi, I'm trying to install NixOS in a chroot. I'm using a tarball (nixos-system-mips64el-linux.tar.xz) that I fetched several month ago. So, the problem is the following error message. # nix-env -i hello error: syntax error, unexpected $undefined, expecting '}', at

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Shea Levy
Hello, The problem is not with the tarball per se, it's with nixpkgs. To fix the issue, you can either update your nix version to at least nix 1.2, or wait until https://github.com/NixOS/nixpkgs/commit/5626c5cdfb6de664881eb8b79dd54a8f4ca19b8f hits the nixpkgs channel so it will still work

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Nikita Karetnikov
The problem is not with the tarball per se, it's with nixpkgs. To fix the issue, you can either update your nix version to at least nix 1.2, or wait until https://github.com/NixOS/nixpkgs/commit/ 5626c5cdfb6de664881eb8b79dd54a8f4ca19b8f hits the nixpkgs channel so it will still work with

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Shea Levy
On 01/12/2013 10:59 AM, Nikita Karetnikov wrote: The problem is not with the tarball per se, it's with nixpkgs. To fix the issue, you can either update your nix version to at least nix 1.2, or wait until https://github.com/NixOS/nixpkgs/commit/ 5626c5cdfb6de664881eb8b79dd54a8f4ca19b8f hits the

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Lluís Batlle i Rossell
On Sat, Jan 12, 2013 at 11:11:37AM -0500, Shea Levy wrote: On 01/12/2013 10:59 AM, Nikita Karetnikov wrote: The problem is not with the tarball per se, it's with nixpkgs. To fix the issue, you can either update your nix version to at least nix 1.2, or wait until

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Shea Levy
On 01/12/2013 11:29 AM, Lluís Batlle i Rossell wrote: On Sat, Jan 12, 2013 at 11:11:37AM -0500, Shea Levy wrote: On 01/12/2013 10:59 AM, Nikita Karetnikov wrote: The problem is not with the tarball per se, it's with nixpkgs. To fix the issue, you can either update your nix version to at least

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Lluís Batlle i Rossell
On Sat, Jan 12, 2013 at 11:32:45AM -0500, Shea Levy wrote: But where does the nixos-system-mips64el-linux.tar.xz tarball come from? I built it and Nikita picked it thanks to OOB conversations :) The same way I distributed arm system tarballs on request.

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Nikita Karetnikov
I built it and Nikita picked it thanks to OOB conversations :) The same way I distributed arm system tarballs on request. Ah, right. I forgot about that. Thanks. Nikita pgpWWuh4NDU9P.pgp Description: PGP signature ___ nix-dev mailing list

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Nikita Karetnikov
I believe that if you do 'nix-env -iA nix' (note the 'A'), you'll be able to install the newer nix without hitting the issue in replace-dependency. # nix-env -iA nix error: attribute `nix' in selection path `nix' not found I've found a workaround here [1], but it didn't help. Do you have any

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Shea Levy
On 01/12/2013 01:33 PM, Nikita Karetnikov wrote: I believe that if you do 'nix-env -iA nix' (note the 'A'), you'll be able to install the newer nix without hitting the issue in replace-dependency. # nix-env -iA nix error: attribute `nix' in selection path `nix' not found Ah, right, you'll

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Nikita Karetnikov
Ah, right, you'll need something like nix-env -iA nixos.nixpkgs.nix. If that path doesn't work (that's for the nixos channel, you may need something different), look for a directory named nixpkgs in ~/.nix-defexpr (or its subdirectories), and do nix-env -iA nix -f

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Nikita Karetnikov
Thanks, the latter did the job. Oh, it failed. [...] glibc-ports-2.13/sysdeps/z8000/mul_1.s glibc-ports-2.13/sysdeps/z8000/sub_n.s configure flags: --disable-static --prefix=/nix/store/zcfiac107h1nji9sdiv2m1dzpvvagrh5-glibc-2.13 -C --enable-add-ons --sysconfdir=/etc

Re: [Nix-dev] mips64el: syntax error in 'replace-dependency.nix'

2013-01-12 Thread Shea Levy
On 01/12/2013 04:57 PM, Nikita Karetnikov wrote: Thanks, the latter did the job. Oh, it failed. [...] glibc-ports-2.13/sysdeps/z8000/mul_1.s glibc-ports-2.13/sysdeps/z8000/sub_n.s configure flags: --disable-static --prefix=/nix/store/zcfiac107h1nji9sdiv2m1dzpvvagrh5-glibc-2.13 -C