{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/45307","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/45307/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/45307/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/45307/events","html_url":"https://github.com/NixOS/nixpkgs/issues/45307","id":351825757,"node_id":"MDU6SXNzdWUzNTE4MjU3NTc=","number":45307,"title":"callHackage creates infinite recursion in package overrides","user":{"login":"mkawalec","id":496144,"node_id":"MDQ6VXNlcjQ5NjE0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/496144?v=4","gravatar_id":"","url":"https://api.github.com/users/mkawalec","html_url":"https://github.com/mkawalec","followers_url":"https://api.github.com/users/mkawalec/followers","following_url":"https://api.github.com/users/mkawalec/following{/other_user}","gists_url":"https://api.github.com/users/mkawalec/gists{/gist_id}","starred_url":"https://api.github.com/users/mkawalec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkawalec/subscriptions","organizations_url":"https://api.github.com/users/mkawalec/orgs","repos_url":"https://api.github.com/users/mkawalec/repos","events_url":"https://api.github.com/users/mkawalec/events{/privacy}","received_events_url":"https://api.github.com/users/mkawalec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-18T14:44:20Z","updated_at":"2018-08-18T14:44:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Issue description\r\n\r\nWhen using `callHackage` in packageOverrides, `nix-env` goes into an infinite loop\r\n\r\n### Steps to reproduce\r\n\r\nUse a `config.nix` file like:\r\n```\r\n\r\n\r\n{\r\n  allowUnfree = true;\r\n  packageOverrides = super: let self = super.pkgs; in with self; rec {\r\n\r\n    haskell843Packages = super.haskell.packages.ghc843.override {\r\n      overrides = self: super: {\r\n        time = super.callHackage \"time\" \"1.6.0.1\" {};\r\n      };\r\n    };\r\n\r\n    haskellPackages = haskell843Packages;\r\n\r\n\r\n    myPackages = super.buildEnv {\r\n      name = \"my-packages\";\r\n      paths = with haskellPackages; [\r\n        hackage-server\r\n      ];\r\n    };\r\n  };\r\n}\r\n```\r\n\r\nThen apply it with `nix-env -i my-packages`\r\n\r\n## Technical details\r\n\r\n```\r\n - system: `\"x86_64-linux\"`\r\n - host os: `Linux 4.14.63, NixOS, 18.03.133114.a4e068ff9c8 (Impala)`\r\n - multi-user?: `yes`\r\n - sandbox: `no`\r\n - version: `nix-env (Nix) 2.0.4`\r\n - channels(root): `\"nixos-18.03.133114.a4e068ff9c8\"`\r\n - channels(michal): `\"nixpkgs-18.09pre149508.5cb9703a8fa\"`\r\n - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`\r\n```"}}
{"actor":{"display_login":"mkawalec"}}