{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7512","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7512/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7512/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7512/events","html_url":"https://github.com/NixOS/nixpkgs/issues/7512","id":70023346,"number":7512,"title":"Make buildLocalCabal available in  haskell-ng","user":{"login":"phunehehe","id":627831,"avatar_url":"https://avatars.githubusercontent.com/u/627831?v=3","gravatar_id":"","url":"https://api.github.com/users/phunehehe","html_url":"https://github.com/phunehehe","followers_url":"https://api.github.com/users/phunehehe/followers","following_url":"https://api.github.com/users/phunehehe/following{/other_user}","gists_url":"https://api.github.com/users/phunehehe/gists{/gist_id}","starred_url":"https://api.github.com/users/phunehehe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phunehehe/subscriptions","organizations_url":"https://api.github.com/users/phunehehe/orgs","repos_url":"https://api.github.com/users/phunehehe/repos","events_url":"https://api.github.com/users/phunehehe/events{/privacy}","received_events_url":"https://api.github.com/users/phunehehe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/haskell","name":"haskell","color":"5319e7"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-22T04:49:23Z","updated_at":"2015-04-22T14:41:50Z","closed_at":null,"body":"My apologies if it's already there and I failed to find it. I use `pkgs.haskellPackages.buildLocalCabal` to build a local package. It has been working fine until now, I want to use `timeit`, which is only available in haskell-ng. Is it possible to add `buildLocalCabal` to `pkgs.haskellngPackages`? Or is there an alternative?"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/95214345","html_url":"https://github.com/NixOS/nixpkgs/issues/7512#issuecomment-95214345","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7512","id":95214345,"user":{"login":"phunehehe","id":627831,"avatar_url":"https://avatars.githubusercontent.com/u/627831?v=3","gravatar_id":"","url":"https://api.github.com/users/phunehehe","html_url":"https://github.com/phunehehe","followers_url":"https://api.github.com/users/phunehehe/followers","following_url":"https://api.github.com/users/phunehehe/following{/other_user}","gists_url":"https://api.github.com/users/phunehehe/gists{/gist_id}","starred_url":"https://api.github.com/users/phunehehe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phunehehe/subscriptions","organizations_url":"https://api.github.com/users/phunehehe/orgs","repos_url":"https://api.github.com/users/phunehehe/repos","events_url":"https://api.github.com/users/phunehehe/events{/privacy}","received_events_url":"https://api.github.com/users/phunehehe/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T14:41:50Z","updated_at":"2015-04-22T14:41:50Z","body":"From what I have seen, `buildLocalCabal` takes a path and a name. It then runs `cabal2nix` on that path, then makes a derivation out of the output, giving it the specified name. It seems to be a nice way to build stuff that I don't intend to put in nixpkgs.\r\n\r\nIs there a better way? I'm OK with running `cabal2nix` and storing the output myself, but I'm not OK with having to explicitly pass build dependencies to `callPackage`. Would you do it differently?"}}