devbox
devbox copied to clipboard
Haskell installation not installing compiler
What happened?
The instructions for a Haskell install indicate that the following:
"packages": [
"stack@latest",
"cabal-install@latest",
"zlib@latest",
"hpack@latest"
]
will install GHC. It does not. And it's not clear what the best practice is for a Devbox user:
- install GHC via stack
- try adding "nix aware" flags to stack and cabal
- installing a nix package for ghcup and using that to install GHC
Thanks!
Steps to reproduce
> devbox add stack cabal-install zlib hpack> devbox shell> which ghc> which stack(To verify installation of stack, which seems to work fine.)
Command
shell
devbox.json
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.15.0/.schema/devbox.schema.json",
"packages": [
"stack@latest",
"cabal-install@latest",
"zlib@latest",
"hpack@latest"
],
"shell": {
"init_hook": [
"echo -ne \"\\033]0;📦 𝚍𝚎𝚟𝚋𝚘𝚡 - $(basename \"$PWD\")\\007\"",
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
},
"env": {
"PATH": "$DEVBOX_PROJECT_ROOT/.bin:$PATH",
"STACK_ROOT": "$DEVBOX_PROJECT_ROOT/.stack",
"CABAL_DIR": "$DEVBOX_PROJECT_ROOT/.cabal"
}
}
Devbox version
0.15.0
Nix version
2.29.0
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
No response