{"action":"created","issue":{"url":"https://api.github.com/repos/guibou/nixGL/issues/9","repository_url":"https://api.github.com/repos/guibou/nixGL","labels_url":"https://api.github.com/repos/guibou/nixGL/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/guibou/nixGL/issues/9/comments","events_url":"https://api.github.com/repos/guibou/nixGL/issues/9/events","html_url":"https://github.com/guibou/nixGL/issues/9","id":324184303,"number":9,"title":"Doesn't work on Nix 2.0","user":{"login":"Infinisil","id":20525370,"avatar_url":"https://avatars0.githubusercontent.com/u/20525370?v=4","gravatar_id":"","url":"https://api.github.com/users/Infinisil","html_url":"https://github.com/Infinisil","followers_url":"https://api.github.com/users/Infinisil/followers","following_url":"https://api.github.com/users/Infinisil/following{/other_user}","gists_url":"https://api.github.com/users/Infinisil/gists{/gist_id}","starred_url":"https://api.github.com/users/Infinisil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Infinisil/subscriptions","organizations_url":"https://api.github.com/users/Infinisil/orgs","repos_url":"https://api.github.com/users/Infinisil/repos","events_url":"https://api.github.com/users/Infinisil/events{/privacy}","received_events_url":"https://api.github.com/users/Infinisil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-17T21:01:04Z","updated_at":"2018-05-18T15:07:08Z","closed_at":null,"author_association":"NONE","body":"The `sha256 = null` trick doesn't work anymore in Nix 2.0, so upon trying to build the nvidia drivers, you'll get the following error:\r\n\r\n```\r\nthese derivations will be built:\r\n  /nix/store/p9vj7v4a3z9s3ma5shvjlbgiqgncr7wd-NVIDIA-Linux-x86_64-390.48.run.drv\r\n  /nix/store/44gjnsclalq0k5l4pfjmh076qjiw9c3g-nvidia-390.48.drv\r\n  /nix/store/p1vkygcw1nc0vx3xb5s9d02j52chbcqm-nixGLNvidia-1.0.0.drv\r\nbuilding '/nix/store/p9vj7v4a3z9s3ma5shvjlbgiqgncr7wd-NVIDIA-Linux-x86_64-390.48.run.drv'...\r\nerror checking the existence of http://tarballs.nixos.org/sha256/:\r\ncurl: (6) Could not resolve host: tarballs.nixos.org\r\ntrying http://download.nvidia.com/XFree86/Linux-x86_64/390.48/NVIDIA-Linux-x86_64-390.48.run\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Transient problem: timeout Will retry in 1 seconds. 3 retries left.\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Transient problem: timeout Will retry in 2 seconds. 2 retries left.\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Transient problem: timeout Will retry in 4 seconds. 1 retries left.\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: download.nvidia.com\r\nerror: cannot download NVIDIA-Linux-x86_64-390.48.run from any mirror\r\nbuilder for '/nix/store/p9vj7v4a3z9s3ma5shvjlbgiqgncr7wd-NVIDIA-Linux-x86_64-390.48.run.drv' failed with exit code 1\r\ncannot build derivation '/nix/store/44gjnsclalq0k5l4pfjmh076qjiw9c3g-nvidia-390.48.drv': 1 dependencies couldn't be built\r\ncannot build derivation '/nix/store/p1vkygcw1nc0vx3xb5s9d02j52chbcqm-nixGLNvidia-1.0.0.drv': 1 dependencies couldn't be built\r\nerror: build of '/nix/store/p1vkygcw1nc0vx3xb5s9d02j52chbcqm-nixGLNvidia-1.0.0.drv' failed\r\n```\r\n\r\nReplacing the null with the correct hash makes it work."},"comment":{"url":"https://api.github.com/repos/guibou/nixGL/issues/comments/390237024","html_url":"https://github.com/guibou/nixGL/issues/9#issuecomment-390237024","issue_url":"https://api.github.com/repos/guibou/nixGL/issues/9","id":390237024,"user":{"login":"Infinisil","id":20525370,"avatar_url":"https://avatars0.githubusercontent.com/u/20525370?v=4","gravatar_id":"","url":"https://api.github.com/users/Infinisil","html_url":"https://github.com/Infinisil","followers_url":"https://api.github.com/users/Infinisil/followers","following_url":"https://api.github.com/users/Infinisil/following{/other_user}","gists_url":"https://api.github.com/users/Infinisil/gists{/gist_id}","starred_url":"https://api.github.com/users/Infinisil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Infinisil/subscriptions","organizations_url":"https://api.github.com/users/Infinisil/orgs","repos_url":"https://api.github.com/users/Infinisil/repos","events_url":"https://api.github.com/users/Infinisil/events{/privacy}","received_events_url":"https://api.github.com/users/Infinisil/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T15:07:08Z","updated_at":"2018-05-18T15:07:08Z","author_association":"NONE","body":"Nope that doesn't work, I should've been clearer: I tested my network along this, which was just fine, everything worked. The reason it appears to be a network issue is because according to @cleverca22 Nix detects that it's not a fixed-output derivation, so it doesn't give you network access to begin with."}}
{"actor":{"display_login":"Infinisil"}}