Question: Package does not install on hackage. Why? #8615
Replies: 3 comments 1 reply
-
Cannot test now, but maybe you can do it using `build-tool-depends`?
Il 22 novembre 2022 alle 12:33 Ivan Perez, PhD ha scritto:
… The following package cannot be installed on hackage:
https://hackage.haskell.org/package/ogma-language-c-1.0.6/reports/1
However, it can be installed from hackage if `alex` and `happy` are in the path (BFNC needs them). The following docker image installs it:
```Dockerfile
FROM ubuntu:trusty
RUN apt-get update
RUN apt-get install --yes software-properties-common
RUN add-apt-repository ppa:hvr/ghc
RUN apt-get update
RUN apt-get install --yes ghc-9.0.1 cabal-install-2.4
RUN apt-get install --yes libz-dev
ENV PATH=/opt/ghc/9.0.1/bin:/opt/cabal/2.4/bin:$PWD/.cabal-sandbox/bin:$PATH
RUN cabal update
RUN cabal v1-sandbox init
RUN cabal v1-install alex happy
RUN cabal v1-install ogma-cli
```
Is there something in the BNFC or ogma-** cabal files that should be specified differently?
--
Reply to this email directly or view it on GitHub:
#8615
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Tested and adding Without this change, on a local box and not just hackage, the package fails with v2-build in general, if the bnfc executable is not already in scope. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you. I will try it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following package cannot be installed on hackage:
https://hackage.haskell.org/package/ogma-language-c-1.0.6/reports/1
However, it can be installed from hackage if
alex
andhappy
are in the path (BFNC needs them). The following docker image installs it (indirectly):Is there something in the BNFC or ogma-** cabal files that should be specified differently?
Beta Was this translation helpful? Give feedback.
All reactions