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 or directory

('cd' works.)

I doubt that a different '/bin/sh' will help.  This tarball worked in
the past.

Nikita


pgpN4hOTmkmY1.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[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 
`/nix/store/pax21mr1bmd7m7zlghb77hrsj3ay9jii-nixos-0.1pre4033_e844fed-96a834d/nixos/nixpkgs/pkgs/build-support/replace-dependency.nix:20:11'
(use `--show-trace' to show detailed location information)

Here is a line that raises the error:

{ drv, old-dependency, new-dependency }:

When I was using this tarball in the past, it worked fine.  Is there a
new tarball?

Nikita


pgppvmyBl2PTf.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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 with older versions of nix.


Cheers,
Shea

On 01/12/2013 09:13 AM, Nikita Karetnikov wrote:

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 
`/nix/store/pax21mr1bmd7m7zlghb77hrsj3ay9jii-nixos-0.1pre4033_e844fed-96a834d/nixos/nixpkgs/pkgs/build-support/replace-dependency.nix:20:11'
(use `--show-trace' to show detailed location information)

Here is a line that raises the error:

{ drv, old-dependency, new-dependency }:

When I was using this tarball in the past, it worked fine.  Is there a
new tarball?

Nikita


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


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


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 older versions of nix.

How should I update Nix?  Will it work if I install it from sources?  Is
it necessary to use any special options with './configure'?

Anyway, I'd like to know where I can download the tarball.  I haven't
found it here [1].

Nikita

[1] http://hydra.nixos.org/project/nixos


pgpAdGcFmnQOu.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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 nixpkgs channel so it will
 still work with older versions of nix.
 How should I update Nix?  Will it work if I install it from sources?  Is
 it necessary to use any special options with './configure'?

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.


 Anyway, I'd like to know where I can download the tarball.  I haven't
 found it here [1].

I'm not sure. I know system-tarball-pc is on hydra, but I've not been 
able to find a mips64el tarball. I've cc'd Lluís (viric), who does most 
of the non-x86 work on nixos/nixpkgs.

 Nikita

 [1] http://hydra.nixos.org/project/nixos

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


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 https://github.com/NixOS/nixpkgs/commit/
 5626c5cdfb6de664881eb8b79dd54a8f4ca19b8f hits the nixpkgs channel so it will
 still work with older versions of nix.
 How should I update Nix?  Will it work if I install it from sources?  Is
 it necessary to use any special options with './configure'?
 
 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.
 
 
 Anyway, I'd like to know where I can download the tarball.  I haven't
 found it here [1].
 
 I'm not sure. I know system-tarball-pc is on hydra, but I've not
 been able to find a mips64el tarball. I've cc'd Lluís (viric), who
 does most of the non-x86 work on nixos/nixpkgs.

You assist Nikita very well. Nothing special in mips64, other than setting
the proper platform in .nixpkgs/config.nix. And no need of Cc. :)

Regards,
Lluís.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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 nix 1.2, or wait
 until https://github.com/NixOS/nixpkgs/commit/
 5626c5cdfb6de664881eb8b79dd54a8f4ca19b8f hits the nixpkgs channel so it 
 will
 still work with older versions of nix.
 How should I update Nix?  Will it work if I install it from sources?  Is
 it necessary to use any special options with './configure'?
 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.

 Anyway, I'd like to know where I can download the tarball.  I haven't
 found it here [1].
 I'm not sure. I know system-tarball-pc is on hydra, but I've not
 been able to find a mips64el tarball. I've cc'd Lluís (viric), who
 does most of the non-x86 work on nixos/nixpkgs.
 You assist Nikita very well. Nothing special in mips64, other than setting
 the proper platform in .nixpkgs/config.nix.

But where does the nixos-system-mips64el-linux.tar.xz tarball come from?

   And no need of Cc. :)

Some people put ml posts directly into a less-often checked folder 
unless they're mentioned directly :)


 Regards,
 Lluís.

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


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.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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 other ideas?  I have some Nix-related binaries in
'/usr/local/bin' in a different chroot.  Can I somehow reuse those?

Nikita

[1] http://nixos.org/irc/logs/log.20120311


pgpmTMKIe_ndU.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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 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 
~/.nix-defexpr/path/to/nixpkgs

 I've found a workaround here [1], but it didn't help.

 Do you have any other ideas?  I have some Nix-related binaries in
 '/usr/local/bin' in a different chroot.  Can I somehow reuse those?

 Nikita

 [1] http://nixos.org/irc/logs/log.20120311

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


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 
 ~/.nix-defexpr/path/to/nixpkgs

Thanks, the latter did the job.

Nikita


pgp4zb3rFoyAI.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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 
--localedir=/var/run/current-system/sw/lib/locale 
--with-headers=/nix/store/lk00b5xr85ahkjzvs3lw9wi1dzwc4q9a-linux-headers-2.6.35.14/include
 --disable-profile 
/nix/store/vv7mwqlqllys5sz231j47b71yaypdz3l-stdenv-linux-boot/setup: 
/tmp/nix-build-2wwhdpp5zkrj6a38va3xixm2yan1hrq6-glibc-2.13.drv-0/build/../glibc-2.13/configure:
 /bin/sh: bad interpreter: No such file or directory
builder for `/nix/store/2wwhdpp5zkrj6a38va3xixm2yan1hrq6-glibc-2.13.drv' failed 
with exit code 126
cannot build derivation 
`/nix/store/c70lpv849qj3kngpcfzhkphg07xsj7bf-perl-5.14.2.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/nix/store/pwq1czxhg9rlpchraqy5mki0v9xlszis-nix-1.3.drv': 1 dependencies 
couldn't be built
error: build of `/nix/store/pwq1czxhg9rlpchraqy5mki0v9xlszis-nix-1.3.drv' failed

Nikita


pgpA0ZMFC_Yvj.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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 
 --enable-add-ons --sysconfdir=/etc 
 --localedir=/var/run/current-system/sw/lib/locale 
 --with-headers=/nix/store/lk00b5xr85ahkjzvs3lw9wi1dzwc4q9a-linux-headers-2.6.35.14/include
  --disable-profile
 /nix/store/vv7mwqlqllys5sz231j47b71yaypdz3l-stdenv-linux-boot/setup: 
 /tmp/nix-build-2wwhdpp5zkrj6a38va3xixm2yan1hrq6-glibc-2.13.drv-0/build/../glibc-2.13/configure:
  /bin/sh: bad interpreter: No such file or directory

Are you doing chroot builds? It looks like your /bin/sh is linked to an 
interpreter outside of the chroot. Since nix-1.3, it's possible to have 
a /bin/sh in the chroot that isn't the same /bin/sh as outside the 
chroot, but since you're trying to install nix-1.3 you'll either have to 
change your system /bin/sh or disable chroot builds.

 builder for `/nix/store/2wwhdpp5zkrj6a38va3xixm2yan1hrq6-glibc-2.13.drv' 
 failed with exit code 126
 cannot build derivation 
 `/nix/store/c70lpv849qj3kngpcfzhkphg07xsj7bf-perl-5.14.2.drv': 1 dependencies 
 couldn't be built
 cannot build derivation 
 `/nix/store/pwq1czxhg9rlpchraqy5mki0v9xlszis-nix-1.3.drv': 1 dependencies 
 couldn't be built
 error: build of `/nix/store/pwq1czxhg9rlpchraqy5mki0v9xlszis-nix-1.3.drv' 
 failed

 Nikita

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