{"action":"created","issue":{"url":"https://api.github.com/repos/moretea/yarn2nix/issues/53","repository_url":"https://api.github.com/repos/moretea/yarn2nix","labels_url":"https://api.github.com/repos/moretea/yarn2nix/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/moretea/yarn2nix/issues/53/comments","events_url":"https://api.github.com/repos/moretea/yarn2nix/issues/53/events","html_url":"https://github.com/moretea/yarn2nix/issues/53","id":311125593,"node_id":"MDU6SXNzdWUzMTExMjU1OTM=","number":53,"title":"Unlink error when building Oni","user":{"login":"johnchildren","id":32305209,"node_id":"MDQ6VXNlcjMyMzA1MjA5","avatar_url":"https://avatars2.githubusercontent.com/u/32305209?v=4","gravatar_id":"","url":"https://api.github.com/users/johnchildren","html_url":"https://github.com/johnchildren","followers_url":"https://api.github.com/users/johnchildren/followers","following_url":"https://api.github.com/users/johnchildren/following{/other_user}","gists_url":"https://api.github.com/users/johnchildren/gists{/gist_id}","starred_url":"https://api.github.com/users/johnchildren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnchildren/subscriptions","organizations_url":"https://api.github.com/users/johnchildren/orgs","repos_url":"https://api.github.com/users/johnchildren/repos","events_url":"https://api.github.com/users/johnchildren/events{/privacy}","received_events_url":"https://api.github.com/users/johnchildren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-04T08:06:31Z","updated_at":"2018-06-19T19:28:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Re: https://github.com/NixOS/nixpkgs/issues/38231\r\n\r\nI attempted to build Oni using yarn2nix, but with this expression:\r\n\r\n```nix\r\n{ yarn2nix, fetchFromGitHub }:\r\nwith yarn2nix; mkYarnPackage rec {\r\n  name = \"oni-vim-${version}\";\r\n  version = \"v0.3.1\";\r\n  src = fetchFromGitHub {\r\n    owner = \"onivim\";\r\n    repo = \"oni\";\r\n    rev = \"adf404a32c585b498b57d9f52fabeaef635e087d\";\r\n    sha256 = \"1h4xlvm2h6lln2w2f5flxycf3175w9cb19f2g5v3d7ksnzm9x2wp\";\r\n  };\r\n}\r\n```\r\n\r\nI had this error\r\n\r\n```\r\nbuilder for '/nix/store/lhi77k72zi84415gcl4iz81ngimjlwdw-oni-modules-0.3.1.drv' failed with exit code 1; last 10 log lines:\r\n  building\r\n  yarn config v1.5.1\r\n  success Set \"yarn-offline-mirror\" to \"/nix/store/1gvl75025qh6608fnq9r7q7iz13s136c-offline\".\r\n  Done in 0.10s.\r\n  yarn install v1.5.1\r\n  [1/4] Resolving packages...\r\n  [2/4] Fetching packages...\r\n  error An unexpected error occurred: \"EACCES: permission denied, unlink '/nix/store/1gvl75025qh6608fnq9r7q7iz13s136c-offline/shelljs-0.7.7.tgz'\".\r\n  info If you think this is a bug, please open a bug report with the information provided in \"/tmp/nix-build-oni-modules-0.3.1.drv-0/yarn-error.log\".\r\n  info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\r\ncannot build derivation '/nix/store/jaqwiq29ba2zv8yyh9ir63xsjwiqq3gi-oni-vim-v0.3.1.drv': 1 dependencies couldn't be built\r\n[349 built (1 failed), 70 copied (6.6 MiB), 2.9 MiB DL]\r\n```\r\n\r\nI don't really know enough about `yarn` to know the root cause of this, but I suspect it is something to do with the unlink command attempting to interfere with nixpkgs symlinks? Will attempt to investigate further later in the week."},"comment":{"url":"https://api.github.com/repos/moretea/yarn2nix/issues/comments/398517055","html_url":"https://github.com/moretea/yarn2nix/issues/53#issuecomment-398517055","issue_url":"https://api.github.com/repos/moretea/yarn2nix/issues/53","id":398517055,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODUxNzA1NQ==","user":{"login":"pmiddend","id":178496,"node_id":"MDQ6VXNlcjE3ODQ5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/178496?v=4","gravatar_id":"","url":"https://api.github.com/users/pmiddend","html_url":"https://github.com/pmiddend","followers_url":"https://api.github.com/users/pmiddend/followers","following_url":"https://api.github.com/users/pmiddend/following{/other_user}","gists_url":"https://api.github.com/users/pmiddend/gists{/gist_id}","starred_url":"https://api.github.com/users/pmiddend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmiddend/subscriptions","organizations_url":"https://api.github.com/users/pmiddend/orgs","repos_url":"https://api.github.com/users/pmiddend/repos","events_url":"https://api.github.com/users/pmiddend/events{/privacy}","received_events_url":"https://api.github.com/users/pmiddend/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T19:28:23Z","updated_at":"2018-06-19T19:28:23Z","author_association":"NONE","body":"I also encounter this error: `\"EACCES: permission denied, unlink '/nix/store/vsy3ykxz5xaimxifkz3w9n2c4ynfr4ki-offline/serve-static-1.13.2.tgz'\"`"}}
{"actor":{"display_login":"pmiddend"}}