Attempt to install llvm using nix

main
Ethan Reece 2023-09-15 01:57:17 -05:00
parent dbf8b9b522
commit 51d2a951e6
Signed by: me
GPG Key ID: D3993665FF92E1C3
4 changed files with 8 additions and 4 deletions

View File

@ -6,9 +6,10 @@ Main repo: https://git.sudoer.ch/me/really-bad-compiler-in-haskell
## Build Instructions
- Install `ghcup` (for managing Haskell tools) and `nix` (for managing external dependencies).
- Clone the repo.
- Use `ghcup` to install all of the Haskell tools.
- Use `stack build` and `stack run <file>` to run the program.
- Use `ghcup` to install `stack 2.9.3`, `HLS 2.2.0.0`, and `cabal 3.6.2.0` (recommended versions of the time of writing).
- Use `stack run <file>` to run the program (for example, `stack run example/1`).
## File structure
@ -31,6 +32,7 @@ Main repo: https://git.sudoer.ch/me/really-bad-compiler-in-haskell
- Language: Haskell
- Haskell tools: GHCup, Stack, Cabal
- Libraries: megaparsec, parser-combinators, text, llvm-hs-pure, llvm-hs-pretty
- Dependencies: llvm, clang
- IDE: VSCodium
- Git platform: Forgejo
- AI: Phind

View File

@ -11,7 +11,7 @@ dependencies:
tested-with: GHC == 8.10.7
category: Compilers/Interpreters
ghc-options: -threaded -Wall -j8 +RTS -A64M -RTS
# ghc-options: -threaded -Wall -j8 +RTS -A64M -RTS
# library:
# source-dirs: src

View File

@ -22,7 +22,6 @@ executable really-bad-compiler-in-haskell
Paths_really_bad_compiler_in_haskell
hs-source-dirs:
app
ghc-options: -threaded -Wall -j8 +RTS -A64M -RTS
build-depends:
base >=4.14.3 && <5
, llvm-hs-pretty ==12.*

View File

@ -9,3 +9,6 @@ extra-deps:
commit: 423220bffac4990d019fc088c46c5f25310d5a33
subdirs:
- llvm-hs-pure
# nix:
# enable: true
# packages: [llvm_13, clang_13]