Nikolay, I made more research on the issue. It turns out that I had
two different problems:
1) "Connecting to nix.org (nix.org)|220.127.116.11|: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
provides some content.
2) "FailedConnectionException2 "raw.githubusercontent.com" 443 True
getProtocolByName: does not exist (no such protocol name: tcp)"
message is actually produced by `stack` tool (Haskell package
builder). This problem still exists. I think it is some corner case,
related to gethostbyname() configuration.
I will try to contact Stack maintainers.
Thanks for quick response!
2016-09-22 12:21 GMT+03:00 Nikolay Amiantov <a...@fmap.me>:
> 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
> /run/current-system/sw/bin/curl nixos.org
> <!DOCTYPE html>
> <html lang="en">
> <title>NixOS Linux</title>
> You seem to have tried "nix.org" instead of "nixos.org" which is indeed
> unreachable for me -- just in case, try the latter instead.
> On 09/22/2016 12:04 PM, Sergey Mironov wrote:
>> 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
>> LANG=C wget nix.org
>> --2016-09-22 11:56:53-- http://nix.org/
>> Resolving nix.org (nix.org)... 18.104.22.168
>> Connecting to nix.org (nix.org)|22.214.171.124|:80... failed:
>> Connection refused.
>> Calling BuildRoot-powered Makefile (which requires access to the
>> network) results in following error:
>> FailedConnectionException2 "raw.githubusercontent.com" 443 True
>> getProtocolByName: does not exist (no such protocol name: tcp)
>> So I am guessing that the possible problem lies somewhere in the TCP
>> stack setup. Is it a known issue? How can I turn the network on?
>> nix-dev mailing list
nix-dev mailing list