Skip to content

Commit

Permalink
Add documentation how to setup project in vs code
Browse files Browse the repository at this point in the history
  • Loading branch information
ssledz committed Nov 11, 2024
1 parent 954076e commit a663a6c
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 10 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,49 @@ locally
```
nix run -L .#fida-contracts:exe:fida-contracts-serialise -- -o ~/now/fida-purs-module/
```

### VS Code Setup

- Install direnv

```
nix profile install nixpkgs#direnv
```

and add following line

for zsh -> to the `~/.zshrc`

```
eval "$(direnv hook zsh)"
```

for bash -> `~/.bashrc`

```
eval "$(direnv hook bash)"
```

- Install https://github.com/nix-community/nix-direnv

```
nix profile install nixpkgs#nix-direnv
```

and add following to the `~/.zshrc` (`~/.bashrc`) file

```
source $HOME/.nix-profile/share/nix-direnv/direnvrc
```

- Allow .envrc to be loaded

```
cd fida-contracts
direnv allow
```

- Install VS Code extensions

* direnv
* Haskell
10 changes: 0 additions & 10 deletions default.nix

This file was deleted.

10 changes: 10 additions & 0 deletions fida-contracts.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"haskell.manageHLS": "PATH"
}
}

0 comments on commit a663a6c

Please sign in to comment.