{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1016","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1016/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1016/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1016/events","html_url":"https://github.com/commercialhaskell/stack/issues/1016","id":107376187,"number":1016,"title":"Cabal postCopy hook doesn't get run","user":{"login":"mgsloan","id":22570,"avatar_url":"https://avatars.githubusercontent.com/u/22570?v=3","gravatar_id":"","url":"https://api.github.com/users/mgsloan","html_url":"https://github.com/mgsloan","followers_url":"https://api.github.com/users/mgsloan/followers","following_url":"https://api.github.com/users/mgsloan/following{/other_user}","gists_url":"https://api.github.com/users/mgsloan/gists{/gist_id}","starred_url":"https://api.github.com/users/mgsloan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgsloan/subscriptions","organizations_url":"https://api.github.com/users/mgsloan/orgs","repos_url":"https://api.github.com/users/mgsloan/repos","events_url":"https://api.github.com/users/mgsloan/events{/privacy}","received_events_url":"https://api.github.com/users/mgsloan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6","html_url":"https://github.com/commercialhaskell/stack/milestones/P2:%20Should","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6/labels","id":1191309,"number":6,"title":"P2: Should","description":"Arbitrary date chosen, just to get the milestones to order nicely","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":52,"state":"open","created_at":"2015-07-02T18:20:49Z","updated_at":"2015-09-20T06:37:32Z","due_on":"2015-10-31T07:00:00Z","closed_at":null},"comments":2,"created_at":"2015-09-20T06:37:32Z","updated_at":"2015-09-20T09:19:54Z","closed_at":null,"body":"`stack install` nearly works for building `ghcjs`, but it doesn't use `runhaskell Setup.hs copy` to install the binaries, and so the ghcjs wrapper scripts don't get installed.  See [the ghcjs Setup.hs file](https://github.com/ghcjs/ghcjs/blob/master/Setup.hs#L34)"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/141759992","html_url":"https://github.com/commercialhaskell/stack/issues/1016#issuecomment-141759992","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1016","id":141759992,"user":{"login":"mgsloan","id":22570,"avatar_url":"https://avatars.githubusercontent.com/u/22570?v=3","gravatar_id":"","url":"https://api.github.com/users/mgsloan","html_url":"https://github.com/mgsloan","followers_url":"https://api.github.com/users/mgsloan/followers","following_url":"https://api.github.com/users/mgsloan/following{/other_user}","gists_url":"https://api.github.com/users/mgsloan/gists{/gist_id}","starred_url":"https://api.github.com/users/mgsloan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgsloan/subscriptions","organizations_url":"https://api.github.com/users/mgsloan/orgs","repos_url":"https://api.github.com/users/mgsloan/repos","events_url":"https://api.github.com/users/mgsloan/events{/privacy}","received_events_url":"https://api.github.com/users/mgsloan/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T09:19:54Z","updated_at":"2015-09-20T09:19:54Z","body":"Ahah, that is indeed exactly what's happening: https://mail.haskell.org/pipermail/cabal-devel/2010-July/006535.html\r\n\r\nSummary is that `runhaskell Setup.hs install` doesn't call the postCopy hook, just the postInstall hook.  So, given that this behavior isn't going to change, I'd say this is a bug with GHCJS's Setup.hs.  I'll open a patch for that."}}