{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1882","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1882/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1882/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1882/events","html_url":"https://github.com/commercialhaskell/stack/issues/1882","id":139164609,"number":1882,"title":"Cannot install GHCJS while in Nix-shell mode","user":{"login":"Rizary","id":7221768,"avatar_url":"https://avatars.githubusercontent.com/u/7221768?v=3","gravatar_id":"","url":"https://api.github.com/users/Rizary","html_url":"https://github.com/Rizary","followers_url":"https://api.github.com/users/Rizary/followers","following_url":"https://api.github.com/users/Rizary/following{/other_user}","gists_url":"https://api.github.com/users/Rizary/gists{/gist_id}","starred_url":"https://api.github.com/users/Rizary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rizary/subscriptions","organizations_url":"https://api.github.com/users/Rizary/orgs","repos_url":"https://api.github.com/users/Rizary/repos","events_url":"https://api.github.com/users/Rizary/events{/privacy}","received_events_url":"https://api.github.com/users/Rizary/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/8","html_url":"https://github.com/commercialhaskell/stack/milestones/Support","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/8/labels","id":1208081,"number":8,"title":"Support","description":"Issues without clear work items for the codebase","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":14,"closed_issues":112,"state":"open","created_at":"2015-07-14T20:38:48Z","updated_at":"2016-03-08T03:12:33Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-03-08T02:57:49Z","updated_at":"2016-03-08T11:01:05Z","closed_at":null,"body":"Hi, I have the following stack.yaml:\r\n\r\n```\r\n# For more information, see: http://docs.haskellstack.org/en/stable/yaml_configuration.html\r\n\r\n# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)\r\nresolver: lts-5.5\r\n\r\n# Local packages, usually specified by relative directory name\r\npackages:\r\n- '.'\r\n\r\n# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)\r\nextra-deps:\r\n- ghcjs-dom-0.2.3.1\r\n- ref-tf-0.4\r\n- webkitgtk3-0.14.1.1\r\n- webkitgtk3-javascriptcore-0.13.1.1\r\n- haskell-src-exts-1.16.0.1\r\n- syb-0.5.1\r\n- aeson-0.9.0.1\r\n\r\n# Override default flag values for local packages and extra-deps\r\nflags: {}\r\n\r\n# Extra package databases containing global packages\r\nextra-package-dbs: []\r\n\r\n# Control whether we use the GHC we find on the path\r\n# system-ghc: true\r\n\r\n# Require a specific version of stack, using version ranges\r\n# require-stack-version: -any # Default\r\n# require-stack-version: >= 1.0.0\r\n\r\n# Override the architecture used by stack, especially useful on Windows\r\n# arch: i386\r\n# arch: x86_64\r\n\r\n# Extra directories used by stack for building\r\n# extra-include-dirs: [/path/to/dir]\r\n# extra-lib-dirs: [/path/to/dir]\r\n\r\n# Allow a newer minor version of GHC than the snapshot specifies\r\n# compiler-check: newer-minor\r\n\r\n# add GHCJS configuration\r\ncompiler: ghcjs-0.2.0.20151230.3_ghc-7.10.2\r\ncompiler-check: match-exact\r\nsetup-info:\r\n ghcjs:\r\n  source:\r\n   ghcjs-0.2.0.20151230.3_ghc-7.10.2:\r\n    url: \"https://github.com/nrolland/ghcjs/releases/download/v.0.2.0.20151230.3/ghcjs-0.2.0.20151230.3.tar.gz\"\r\n\r\n#nix-configuration\r\nnix:\r\n enable: true\r\n shell-file: ../../haskell-nix/shell.nix\r\n\r\n```\r\n\r\nand when i do \r\n\r\n` stack setup`\r\n\r\ninside nix-shell mode, i got the following error:\r\n\r\n```\r\nPreparing to install GHCJS to an isolated location.\r\nThis will not interfere with any system-level installation.\r\nNo sha1 found in metadata, download hash won't be checked. \r\nAlready downloaded.                                        \r\nUnpacking GHCJS into /home/user/.stack/programs/x86_64-linux/ghcjs-0.2.0.20151230.3_ghc-7.10.2/src/ ...Expected a single directory within unpacked /home/user/.stack/programs/x86_64-linux/ghcjs-0.2.0.20151230.3_ghc-7.10.2.tar.gz\r\n\r\n```\r\n\r\nI have install stack inside the nix-shell, and when i do stack install (e.g. reflex-dom),:\r\n\r\n`stack install reflex-dom`\r\n\r\n i got the following error:\r\n\r\n```\r\nNo compiler found, expected exact version ghcjs-0.2.0.20151230.3_ghc-7.10.2 (x86_64) (based on resolver setting in /home/user/folrdertest/testinstall/stack.yaml).\r\nTry running \"stack setup\" to install the correct GHC into /home/user/.stack/programs/x86_64-linux/\r\n\r\n```\r\n\r\nwhen doing stack setup, the same error above happened.\r\n\r\nAny idea where i am doing wrong?? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/193729855","html_url":"https://github.com/commercialhaskell/stack/issues/1882#issuecomment-193729855","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1882","id":193729855,"user":{"login":"Rizary","id":7221768,"avatar_url":"https://avatars.githubusercontent.com/u/7221768?v=3","gravatar_id":"","url":"https://api.github.com/users/Rizary","html_url":"https://github.com/Rizary","followers_url":"https://api.github.com/users/Rizary/followers","following_url":"https://api.github.com/users/Rizary/following{/other_user}","gists_url":"https://api.github.com/users/Rizary/gists{/gist_id}","starred_url":"https://api.github.com/users/Rizary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rizary/subscriptions","organizations_url":"https://api.github.com/users/Rizary/orgs","repos_url":"https://api.github.com/users/Rizary/repos","events_url":"https://api.github.com/users/Rizary/events{/privacy}","received_events_url":"https://api.github.com/users/Rizary/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T11:01:05Z","updated_at":"2016-03-08T11:01:05Z","body":"Hi, thank you.\r\n\r\nI have done \r\n\r\n`stack upgrade --git`\r\n\r\nbut got this error:\r\n\r\n```\r\nInformation about the commit this version of stack was built from is not available due to how it was built. Will continue by assuming an upgrade is needed because we have no information to the contrary.\r\nCloning stack\r\nCloning into 'stack'...\r\nremote: Counting objects: 399, done.\r\nremote: Compressing objects: 100% (294/294), done.\r\nremote: Total 399 (delta 43), reused 238 (delta 30), pack-reused 0\r\nReceiving objects: 100% (399/399), 496.57 KiB | 145.00 KiB/s, done.\r\nResolving deltas: 100% (43/43), done.\r\nChecking connectivity... done.\r\npath-io-1.0.0: configure\r\npath-io-1.0.0: build\r\nhpack-0.10.0: configure\r\nhpack-0.10.0: build\r\npath-io-1.0.0: copy/register\r\nhpack-0.10.0: copy/register\r\nstack-1.0.5: configure\r\nConfiguring stack-1.0.5...\r\nstack-1.0.5: build\r\nPreprocessing library stack-1.0.5...\r\n[ 1 of 86] Compiling Stack.FileWatch  ( src/Stack/FileWatch.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Stack/FileWatch.o )\r\n[ 2 of 86] Compiling System.Process.PagerEditor ( src/System/Process/PagerEditor.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/System/Process/PagerEditor.o )\r\n[ 3 of 86] Compiling Stack.Types.Config[boot] ( src/Stack/Types/Config.hs-boot, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Stack/Types/Config.o-boot )\r\n[ 4 of 86] Compiling System.Process.Log ( src/System/Process/Log.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/System/Process/Log.o )\r\n[ 5 of 86] Compiling System.Process.Read ( src/System/Process/Read.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/System/Process/Read.o )\r\n<command line>: can't load .so/.DLL for: libz.so (libz.so: cannot open shared object file: No such file or directory)\r\nCompleted 3 action(s).\r\n\r\n--  While building package stack-1.0.5 using:\r\n      /home/R/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.5.0 build lib:stack exe:stack --ghc-options \" -ddump-hi -ddump-to-file\"\r\n    Process exited with code: ExitFailure 1\r\n\r\n```\r\n\r\ni have add this to my stack.yaml project:\r\n\r\n```\r\nextra-include-dirs:\r\n- /nix/store/wwh7mhwh269sfjkm6k5665b5kgp7jrk2-zlib-1.2.8/include\r\nextra-lib-dirs:\r\n/nix/store/wwh7mhwh269sfjkm6k5665b5kgp7jrk2-zlib-1.2.8/lib\r\n```\r\n\r\nbut still got the same error. (i am doing this inside nix-shell\r\n\r\n"}}