reflex-frp / reflex-platform

A curated package set and set of tools that let you build Haskell packages so they can run on a variety of platforms. reflex-platform is built on top of the nix package manager.
https://reflex-frp.org
BSD 3-Clause "New" or "Revised" License
720 stars 164 forks source link

GHCJS fails using `work-on` #71

Closed teodorlu closed 8 years ago

teodorlu commented 8 years ago

Hello,

I'm trying to use Reflex with the work-on script, but I'm running into problems. I'm doing this:

  1. Cloning reflex-platform
  2. Running try-reflex works fine, drops me into a shell with both ghcjs and Reflex
  3. Running git/reflex-platform/work-on ghcjs workspace/webapp produces the following error:
teodorlu@nixlap ~ % git/reflex-platform/work-on ghcjs workspace/webapp
If you have any trouble with this script, please submit an issue at https://github.com/reflex-frp/reflex-platform/issues
building path(s) ‘/nix/store/0fq0mki0csjgzryki4ib4p4z3d5fxyaf-cabal2nixResult’
these derivations will be built:
  /nix/store/n8j5aj6pjh03wxakfvrbib89yvlvnzbk-ghcjs-0.2.0.drv
building path(s) ‘/nix/store/hwbai3fcf46cik68zq21i27kr61bm394-ghcjs-0.2.0’
created 104 symlinks in user environment
ghcjs-pkg-0.2.0-8.0.1: /nix/store/hwbai3fcf46cik68zq21i27kr61bm394-ghcjs-0.2.0/lib/ghcjs-0.2.0/package.conf.d/package.cache: you don't have permission to modify this file
builder for ‘/nix/store/n8j5aj6pjh03wxakfvrbib89yvlvnzbk-ghcjs-0.2.0.drv’ failed with exit code 1
error: build of ‘/nix/store/n8j5aj6pjh03wxakfvrbib89yvlvnzbk-ghcjs-0.2.0.drv’ failed
/run/current-system/sw/bin/nix-shell: failed to build all dependencies
It looks like a problem occurred.  Please submit an issue at https://github.com/reflex-frp/reflex-platform/issues - include git/reflex-platform/work-on.log to provide more information

I'm on NixOS 16.03. Content of ~/workspace/webapp is a basic Cabal setup.

Any ideas? Thanks!

teodorlu commented 8 years ago

Output of try-reflex: try-reflex-output.txt

teodorlu commented 8 years ago

Log produced by work-on didn't contain much: work-on.log.txt

imalsogreg commented 8 years ago

I've been looking at this but without any luck reproducing. Any chance your issue is related to this one: https://github.com/NixOS/nixpkgs/issues/6419?

teodorlu commented 8 years ago

Hey!

Thanks for the heads-up. I added a few more dependencies in the .cabal-file:

  build-depends:       base >=4.8 && <4.9
                     , pandoc
                     , parsec
                     , containers

... and it works! Thanks!