{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/51987","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/51987/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/51987/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/51987/events","html_url":"https://github.com/NixOS/nixpkgs/issues/51987","id":390966098,"node_id":"MDU6SXNzdWUzOTA5NjYwOTg=","number":51987,"title":"Introduce DWARF-neabled Haskell package set","user":{"login":"bgamari","id":1010174,"node_id":"MDQ6VXNlcjEwMTAxNzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1010174?v=4","gravatar_id":"","url":"https://api.github.com/users/bgamari","html_url":"https://github.com/bgamari","followers_url":"https://api.github.com/users/bgamari/followers","following_url":"https://api.github.com/users/bgamari/following{/other_user}","gists_url":"https://api.github.com/users/bgamari/gists{/gist_id}","starred_url":"https://api.github.com/users/bgamari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgamari/subscriptions","organizations_url":"https://api.github.com/users/bgamari/orgs","repos_url":"https://api.github.com/users/bgamari/repos","events_url":"https://api.github.com/users/bgamari/events{/privacy}","received_events_url":"https://api.github.com/users/bgamari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-14T04:59:11Z","updated_at":"2018-12-14T04:59:11Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Issue description\r\n\r\nWhile `haskell.lib.enableDWARFDebugging` now exists, in practice it's not very useful since stack unwinding rarely succeeds unless all libraries in the process's image have unwind information. I think what we really want is a whole package set: `haskell.packages.ghc864.withDwarf`.\r\n\r\nI thought implementing this would be straightforward; unfortunately it seems I was wrong. My attempt was:\r\n```nix\r\nwithDwarf = haskellPackages: haskellPackages.override { overrides = self: super: { mkDerivation = xs: pkgs.haskell.lib.enableDWARFDebugging (super.mkDerivation xs); }; };\r\n```\r\nUnfortunately this gives rise to\r\n```\r\nerror: anonymous function at /nix/store/4yqnapjyaq2ag9idddvpyvsjy1q0diiy-nixpkgs-18.09.783.299814b385d/nixpkgs/pkgs/development/haskell-modules/generic-builder.nix:12:1 called with unexpected argument 'mkDerivation', at /nix/store/4yqnapjyaq2ag9idddvpyvsjy1q0diiy-nixpkgs-18.09.783.299814b385d/nixpkgs/lib/customisation.nix:69:12\r\n```"}}
{"actor":{"display_login":"bgamari"}}