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

Nix setup problem, ghcjs is not exposed? #59

Closed spinus closed 8 years ago

spinus commented 8 years ago
$ ./try-reflex                          
If you have any trouble with this script, please submit an issue at https://github.com/reflex-frp/reflex-platform/issues
Entering the reflex sandbox...

$ ghcjs
ghcjs: command not found

Any ideas why the ghcjs is not exposed?

ali-abrar commented 8 years ago

@spinus what OS are you running?

ali-abrar commented 8 years ago

This looks a lot like the issue we've seen in Linux Mint, explained here.

spinus commented 8 years ago
$ cat /etc/issue

<<< Welcome to NixOS 16.03pre75806.77f8f35 (\m) - \l >>>
spinus commented 8 years ago

Hmm, I don't use bash, so I don't have any configuration files for it. I have profile file where I'm extending PATH. I will try to play with bash config and report here (probably next week)

spinus commented 8 years ago

I removed .profile and any other files to make sure variables are not changed etc. Didn't help.

When I try to reproduce try-reflex commands (I run two last commands), the PATH is not changed when I run nix-shell.

spinus commented 8 years ago

Finally I reinstalled my nixos and script is working. I'm not exactly sure why it is working now and was not before as it's almost the same configuration (this time I added binary cache for reflex). Maybe there was some packages in my user env installed ad-hoc which were colliding with ghcjs and try-reflex script was "failing" without any error message.