Re: [Nix-dev] [NixDev] buildFHSUserEnv, network problems

2016-09-22 Thread Nikolay Amiantov
Nevermind, the domain works (albeit suspended). It seems like it's blocked in Russia[1], that's why I don't get anything from it (it works via VPN). On 09/22/2016 03:24 PM, Sergiu Ivanov wrote: > > Thus quoth Nikolay Amiantov at 12:25 on Do, Sep 22 2016: >> >> Good to hear you solved it! BTW, I

Re: [Nix-dev] [NixDev] buildFHSUserEnv, network problems

2016-09-22 Thread Sergiu Ivanov
Thus quoth Nikolay Amiantov at 12:25 on Do, Sep 22 2016: > > Good to hear you solved it! BTW, I don't get anything when trying to > curl nix.org (seems like packets are dropped) -- interesting... Not sure how relevant this is, but I get 302 Found when I curl nix.org: $ curl nix.org 302 Foun

Re: [Nix-dev] [NixDev] buildFHSUserEnv, network problems

2016-09-22 Thread Sergey Mironov
I solved my problem (2). The solution was to add "iana_etc" package to the list of 'buildFHSUserEnv'. It creates file /etc/protocols which stack reads. > Side note about Buildroot + buildFHSUserEnv. I hit an issue with > fakeroot, which Buildroot uses near the end of the build process, due > to

Re: [Nix-dev] [NixDev] buildFHSUserEnv, network problems

2016-09-22 Thread Bjørn Forsman
On 22 September 2016 at 11:04, Sergey Mironov wrote: > Hi! I tried to use buildFHSUserEnv to create chroot environment to > build some tricky BuildRoot project. Side note about Buildroot + buildFHSUserEnv. I hit an issue with fakeroot, which Buildroot uses near the end of the build process, due t

Re: [Nix-dev] [NixDev] buildFHSUserEnv, network problems

2016-09-22 Thread Nikolay Amiantov
Good to hear you solved it! BTW, I don't get anything when trying to curl nix.org (seems like packets are dropped) -- interesting... On 09/22/2016 01:20 PM, Sergey Mironov wrote: > Nikolay, I made more research on the issue. It turns out that I had > two different problems: > 1) "Connecting to nix

Re: [Nix-dev] [NixDev] buildFHSUserEnv, network problems

2016-09-22 Thread Sergey Mironov
Nikolay, I made more research on the issue. It turns out that I had two different problems: 1) "Connecting to nix.org (nix.org)|160.153.18.102|:80... failed:" - was the misconfigured http_proxy. Setting it correctly makes wget work. By nix.org I mean nixos.org. nix.org is a valid name too, site pr

Re: [Nix-dev] [NixDev] buildFHSUserEnv, network problems

2016-09-22 Thread Nikolay Amiantov
Hi! This is a strange problem you have! I tested right now that at least in `steam.env` networking works: nixpkgs git:(stable) ✗ TERM=xterm nix-shell -A steam.env steam-chrootenv:ab@abbradarbook:~/nixpkgs$ /run/current-system/sw/bin/curl nixos.org NixOS Linux ... You seem to have tri

[Nix-dev] [NixDev] buildFHSUserEnv, network problems

2016-09-22 Thread Sergey Mironov
Hi! I tried to use buildFHSUserEnv to create chroot environment to build some tricky BuildRoot project. The function seems to do the Right Thing in general except for network behavior: calling wget from this environment returns following buildroot-env-chrootenv:smironov@ww2:~/proj/ks/kss-linux