{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/36981","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/36981/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/36981/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/36981/events","html_url":"https://github.com/NixOS/nixpkgs/issues/36981","id":305134769,"number":36981,"title":"Installed nodePackage has a dependency issue","user":{"login":"Avaq","id":1217745,"avatar_url":"https://avatars0.githubusercontent.com/u/1217745?v=4","gravatar_id":"","url":"https://api.github.com/users/Avaq","html_url":"https://github.com/Avaq","followers_url":"https://api.github.com/users/Avaq/followers","following_url":"https://api.github.com/users/Avaq/following{/other_user}","gists_url":"https://api.github.com/users/Avaq/gists{/gist_id}","starred_url":"https://api.github.com/users/Avaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Avaq/subscriptions","organizations_url":"https://api.github.com/users/Avaq/orgs","repos_url":"https://api.github.com/users/Avaq/repos","events_url":"https://api.github.com/users/Avaq/events{/privacy}","received_events_url":"https://api.github.com/users/Avaq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-14T12:17:29Z","updated_at":"2018-03-14T13:36:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Issue description\r\n\r\nWhen I install the [dat](https://www.npmjs.com/package/dat) package using Nix, the `append-tree` dependency loads a `process-nextick-args` package whose version is out of the desired range.\r\n\r\n`append-tree` [wants `process-nextick-args` version 1.x](https://github.com/mafintosh/append-tree/blob/69c89bc4ffd78d09b3bfdb95f14da54ac27f11d3/package.json#L12), but it gets version 2.x somehow, which has breaking changes that cause the `dat` package to become unusable.\r\n\r\n### Steps to reproduce\r\n\r\n(I'm using unstable channel)\r\n\r\n```console\r\n$ nix-shell --pure -p 'nodePackages.dat'\r\n$ dat -v\r\n13.10.0\r\n$ dat init\r\nWelcome to dat program!\r\n\r\n[...omitted...]\r\n\r\nTitle:  Test\r\nDescription:  Testing dat module\r\n\r\n/nix/store/nzpc1pymvd3f1hcm8mcdcgpiipgyw6mm-node-dat-13.10.0/lib/node_modules/dat/node_modules/append-tree/index.js\r\n  if (cached) return nextTick(cb, null, cached, seq)\r\n                     ^\r\n\r\nTypeError: nextTick is not a function\r\n[...omitted...]\r\n```\r\n\r\nThe TypeError on the last line now reoccurs with every other dat command issued.\r\n\r\nThe TypeError does not occur when installing `dat` through npm, and dat will work as advertised:\r\n\r\n```console\r\n$ npm i dat\r\n$ ./node_modules/.bin/dat -v\r\n13.10.0\r\n$ ./node_modules/.bin/dat init\r\n```\r\n\r\n## Technical details\r\n\r\n```console\r\n$ nix-shell -p nix-info --run \"nix-info -m\"\r\n - system: `\"x86_64-linux\"`\r\n - host os: `Linux 4.14.24, NixOS, 18.03pre130932.cc4677c36ee (Impala)`\r\n - multi-user?: `yes`\r\n - sandbox: `no`\r\n - version: `nix-env (Nix) 2.0`\r\n - channels(root): `\"nixos-18.03pre130932.cc4677c36ee\"`\r\n - channels(avaq): `\"\"`\r\n - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/373022779","html_url":"https://github.com/NixOS/nixpkgs/issues/36981#issuecomment-373022779","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/36981","id":373022779,"user":{"login":"globin","id":1447245,"avatar_url":"https://avatars3.githubusercontent.com/u/1447245?v=4","gravatar_id":"","url":"https://api.github.com/users/globin","html_url":"https://github.com/globin","followers_url":"https://api.github.com/users/globin/followers","following_url":"https://api.github.com/users/globin/following{/other_user}","gists_url":"https://api.github.com/users/globin/gists{/gist_id}","starred_url":"https://api.github.com/users/globin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globin/subscriptions","organizations_url":"https://api.github.com/users/globin/orgs","repos_url":"https://api.github.com/users/globin/repos","events_url":"https://api.github.com/users/globin/events{/privacy}","received_events_url":"https://api.github.com/users/globin/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T13:36:29Z","updated_at":"2018-03-14T13:36:29Z","author_association":"MEMBER","body":"cc @svanderburg that sounds like the issue I mentioned on IRC"}}
{"actor":{"display_login":"globin"}}