Attempt to install llvm using nix
parent
dbf8b9b522
commit
51d2a951e6
|
@ -6,9 +6,10 @@ Main repo: https://git.sudoer.ch/me/really-bad-compiler-in-haskell
|
||||||
|
|
||||||
## Build Instructions
|
## Build Instructions
|
||||||
|
|
||||||
|
- Install `ghcup` (for managing Haskell tools) and `nix` (for managing external dependencies).
|
||||||
- Clone the repo.
|
- Clone the repo.
|
||||||
- Use `ghcup` to install all of the Haskell tools.
|
- 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 build` and `stack run <file>` to run the program.
|
- Use `stack run <file>` to run the program (for example, `stack run example/1`).
|
||||||
|
|
||||||
## File structure
|
## File structure
|
||||||
|
|
||||||
|
@ -31,6 +32,7 @@ Main repo: https://git.sudoer.ch/me/really-bad-compiler-in-haskell
|
||||||
- Language: Haskell
|
- Language: Haskell
|
||||||
- Haskell tools: GHCup, Stack, Cabal
|
- Haskell tools: GHCup, Stack, Cabal
|
||||||
- Libraries: megaparsec, parser-combinators, text, llvm-hs-pure, llvm-hs-pretty
|
- Libraries: megaparsec, parser-combinators, text, llvm-hs-pure, llvm-hs-pretty
|
||||||
|
- Dependencies: llvm, clang
|
||||||
- IDE: VSCodium
|
- IDE: VSCodium
|
||||||
- Git platform: Forgejo
|
- Git platform: Forgejo
|
||||||
- AI: Phind
|
- AI: Phind
|
||||||
|
|
|
@ -11,7 +11,7 @@ dependencies:
|
||||||
tested-with: GHC == 8.10.7
|
tested-with: GHC == 8.10.7
|
||||||
category: Compilers/Interpreters
|
category: Compilers/Interpreters
|
||||||
|
|
||||||
ghc-options: -threaded -Wall -j8 +RTS -A64M -RTS
|
# ghc-options: -threaded -Wall -j8 +RTS -A64M -RTS
|
||||||
|
|
||||||
# library:
|
# library:
|
||||||
# source-dirs: src
|
# source-dirs: src
|
||||||
|
|
|
@ -22,7 +22,6 @@ executable really-bad-compiler-in-haskell
|
||||||
Paths_really_bad_compiler_in_haskell
|
Paths_really_bad_compiler_in_haskell
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
app
|
app
|
||||||
ghc-options: -threaded -Wall -j8 +RTS -A64M -RTS
|
|
||||||
build-depends:
|
build-depends:
|
||||||
base >=4.14.3 && <5
|
base >=4.14.3 && <5
|
||||||
, llvm-hs-pretty ==12.*
|
, llvm-hs-pretty ==12.*
|
||||||
|
|
|
@ -9,3 +9,6 @@ extra-deps:
|
||||||
commit: 423220bffac4990d019fc088c46c5f25310d5a33
|
commit: 423220bffac4990d019fc088c46c5f25310d5a33
|
||||||
subdirs:
|
subdirs:
|
||||||
- llvm-hs-pure
|
- llvm-hs-pure
|
||||||
|
# nix:
|
||||||
|
# enable: true
|
||||||
|
# packages: [llvm_13, clang_13]
|
||||||
|
|
Reference in New Issue