Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS shell: invalid flags #115

Open
hsyl20 opened this issue Nov 21, 2023 · 2 comments
Open

JS shell: invalid flags #115

hsyl20 opened this issue Nov 21, 2023 · 2 comments

Comments

@hsyl20
Copy link

hsyl20 commented Nov 21, 2023

In the JS shell:

nix develop github:input-output-hk/devx#ghc810-js-minimal-iog --no-write-lock-file --refresh

we have:

env | grep NIX_CABAL_FLAGS
NIX_CABAL_FLAGS=--with-ghc=javascript-unknown-ghcjs-ghc --with-ghc-pkg=javascript-unknown-ghcjs-ghc-pkg --with-hsc2hs=javascript-unknown-ghcjs-hsc2hs

Two issues:

  • ghcjs is built with prefix "js-unknown-ghcjs", not "javascript-unknown-ghcjs" (while the latter is correct for the JS backend)
  • "--ghcjs" isn't passed to cabal (only required for ghcjs, not for the JS backend)
@hsyl20
Copy link
Author

hsyl20 commented Nov 21, 2023

Cc @JoshMeredith

@hsyl20
Copy link
Author

hsyl20 commented Nov 21, 2023

We should probably test the environment on CI if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant