-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from input-output-hk/mgalazyn/initial-setup-local
Cleanup, add direnv and inotifywait, add cabal.project.local with development settings
- Loading branch information
Showing
8 changed files
with
168 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
strict_env | ||
if has ghcup; then | ||
GHC_VER="$(grep -oP '^with-compiler: ghc-\K[\d.]+' cabal.project.local)" | ||
PATH_add $(ghcup run --ghc "$GHC_VER" -i 2>/dev/null) | ||
fi | ||
|
||
# load_prefix /usr | ||
load_prefix /usr/local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,25 @@ | ||
.stack-work/ | ||
.ghc.environment.* | ||
.nix-shell-cabal.project | ||
/cabal.project.diff | ||
/cabal.project.freeze | ||
/cabal.project.local* | ||
/cabal.project.old | ||
configuration/defaults/simpleview/genesis/ | ||
configuration/defaults/liveview/genesis/ | ||
dist-newstyle/ | ||
dist-profiled/ | ||
dist/ | ||
*~ | ||
\#* | ||
\.#* | ||
*.swp | ||
.dir-locals.el | ||
.Rhistory | ||
result* | ||
/launch-* | ||
stack.yaml.lock | ||
|
||
/.cache | ||
/db | ||
/db-[0-9] | ||
/logs | ||
/mainnet | ||
/profile | ||
/launch_* | ||
/state-* | ||
*.eventlog | ||
*.hp | ||
*.prof | ||
*.stats | ||
/cluster | ||
/cluster.* | ||
/run | ||
supervisord.pid | ||
|
||
tags | ||
/config | ||
/data | ||
./*.skey | ||
./*.vkey | ||
./*.cert | ||
|
||
# For now require that users generate their own hie.yaml | ||
hie.yaml | ||
|
||
# Ignore Visual Studio code configuration | ||
.vscode/tasks.json | ||
|
||
# Ignore files generated by tests | ||
tmp | ||
logs | ||
/chairman/db | ||
/html | ||
|
||
# Ignore files generated by haddock | ||
/haddocks | ||
/*.socket | ||
|
||
# Ignore files generated by scripts | ||
/example | ||
/testnet | ||
|
||
.vscode/ | ||
|
||
# Test artifacts | ||
cardano-tracer/cardano-tracer-test | ||
|
||
# IntellIJ project folder | ||
.idea/ | ||
# this ignores everything except meta-project configuration files | ||
# this allows users to keep anything they want in this directory like | ||
# temporarily cloned repos with dependencies for the time being | ||
* | ||
|
||
!.gitignore | ||
!.gitmodules | ||
!README.md | ||
!LICENSE | ||
|
||
# metaproject configuration files | ||
!.envrc | ||
!cabal.project | ||
!cabal.project.local | ||
!hie.yaml | ||
!CODEOWNERS | ||
!haskdogs-dirs.txt | ||
!inotifywait.sh | ||
|
||
# cardano projects | ||
!cardano-dev | ||
!cardano-api | ||
!cardano-cli | ||
!cardano-node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# fusion-flamingo | ||
Development repository for the fusion-flamingo team | ||
|
||
## Tools and configurations | ||
|
||
### `inotifywait.sh` | ||
Constantly watches the directory, and exits when changes are made. | ||
Useful for rebuilding on file change for example: | ||
```bash | ||
while :; do cabal test cardano-cli-test-golden; sleep 0.5; ./inotifywait.sh ; done | ||
``` | ||
|
||
### `haskdogs.txt` | ||
List of directories useful for generating ctags | ||
|
||
```bash | ||
haskdogs -d haskdogs.txt | ||
``` | ||
|
||
### `.envrc` | ||
`direnv` configuration. | ||
Adds prefixes for building the projects with crypto libraries. | ||
Downloads GHC configured in `cabal.project.local` **if** `ghcup` is present. | ||
|
||
### `hie.yaml` | ||
Generic HLS configuration to make it work everywhere. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
jobs: $ncpus | ||
ignore-project: False | ||
optimization: False | ||
test-show-details: direct | ||
|
||
program-options | ||
ghc-options: -fobject-code -freverse-errors -Wwarn -Wunused-packages | ||
|
||
package cardano-crypto-praos | ||
flags: -external-libsodium-vrf | ||
|
||
-- with-compiler: ghc-8.10.7 | ||
-- with-compiler: ghc-9.2.8 | ||
with-compiler: ghc-9.6.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cardano-api | ||
cardano-cli | ||
cardano-base | ||
cardano-ledger | ||
cardano-node | ||
ouroboros-consensus | ||
ouroboros-network | ||
plutus | ||
plutus-apps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cradle: | ||
cabal: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/env bash | ||
inotifywait -e close_write -r . \ | ||
--exclude 'dist-newstyle|.git|./cardano-node/example' |