{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10148","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10148/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10148/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10148/events","html_url":"https://github.com/NixOS/nixpkgs/issues/10148","id":109002719,"number":10148,"title":"nix-build isn't working with GHCJS","user":{"login":"mayhewluke","id":5531936,"avatar_url":"https://avatars.githubusercontent.com/u/5531936?v=3","gravatar_id":"","url":"https://api.github.com/users/mayhewluke","html_url":"https://github.com/mayhewluke","followers_url":"https://api.github.com/users/mayhewluke/followers","following_url":"https://api.github.com/users/mayhewluke/following{/other_user}","gists_url":"https://api.github.com/users/mayhewluke/gists{/gist_id}","starred_url":"https://api.github.com/users/mayhewluke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayhewluke/subscriptions","organizations_url":"https://api.github.com/users/mayhewluke/orgs","repos_url":"https://api.github.com/users/mayhewluke/repos","events_url":"https://api.github.com/users/mayhewluke/events{/privacy}","received_events_url":"https://api.github.com/users/mayhewluke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-30T02:31:29Z","updated_at":"2015-09-30T02:31:29Z","closed_at":null,"body":"When using `nix-build` with a GHCJS `mkDerivation` I end up with the following message:\r\n\r\n```\r\n$ nix-build\r\n...\r\nIn-place registering foo-0.0.0...\r\nall.js:\r\n'/nix/store/b4hm2k5lzqjr4d6zs5ikqf5y2ivijzsa-ghcjs-0.1.0/bin/ghcjs-pkg' exited\r\nwith an error:\r\nfoo-0.0.0: Warning: haddock-interfaces:\r\n/tmp/nix-build-haskell-foo-0.0.0.drv-0/yesod/dist/doc/html/foo/foo.haddock\r\ndoesn't exist or isn't a file\r\nfoo-0.0.0: Warning: haddock-html:\r\n/tmp/nix-build-haskell-foo-0.0.0.drv-0/yesod/dist/doc/html/foo doesn't\r\nexist or isn't a directory\r\nfoo-0.0.0: cannot find any of\r\n[\"Client.hi\",\"Client.p_hi\",\"Client.dyn_hi\",\"Client.js_hi\",\"Client.js_p_hi\"]\r\n(use --force to override)\r\nbuilder for ‘/nix/store/1nq7hzgy9lhp3r9kpxjlzpcpkxr45asz-haskell-foo-0.0.0.drv’ failed with exit code 1\r\nerror: build of ‘/nix/store/1nq7hzgy9lhp3r9kpxjlzpcpkxr45asz-haskell-foo-0.0.0.drv’ failed\r\n```\r\n\r\nI'm not sure where this error is coming from or why I'm getting it. My derivation looks like the following:\r\n\r\n```nix\r\nmkDerivation {\r\n  pname = \"foo\";\r\n  version = \"0.0.0\";\r\n  src = ./.;\r\n  isLibrary = true;\r\n  isExecutable = true;\r\n  buildDepends = [ ... ];\r\n  license = \"undefined\";\r\n}\r\n```\r\n\r\nSetting `doCheck`, `doHoogle`, and `doHaddock` to false don't appear to make a difference. As a workaround I'm just using `nix-shell --run 'ghcjs Client.hs'` instead, but it would be nice to get `nix-build` working."}}