Repository navigation
Add nix env #760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Add nix env #760
Changes from 83 commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
562feda
Add nix env
vgeddes 0a8a921
foo
vgeddes e4b9d62
cowsay
vgeddes 4276f97
Get working on MacOs
vgeddes a36cf88
Get working on MacOs
vgeddes dcfc9b7
fix
vgeddes 2a0d1da
Merge branch 'main' into nix
vgeddes 45d87f6
change
vgeddes e66bcab
foo
vgeddes de2a956
Apply suggestions from code review
vgeddes e25ae6c
Preserve local shell in nix-shell instructions
doubledup 42713ab
Set clang path for rocksdb
doubledup d6fa775
Set POLKADOT_DIR in envrc template
doubledup e24ce83
Use direnv to automatically enter nix-shell
doubledup 7ad5921
Explain use of LIBCLANG_PATH
doubledup a227015
Lock nixpkgs hash
doubledup 51ee780
Avoid impure overlays & config on import
doubledup 5776367
Remove redundant pkgs
doubledup 700b44d
Add initial flake definition
doubledup b1f8237
Add export to commented env vars
doubledup 6a914e3
Source root envrc in subdirectories
doubledup 238c0c2
Tweak README
doubledup 1f92058
Move root envrc to an example file
doubledup 2e47c8a
Don't require .envrc in project root
doubledup 8943e1d
Set up Rust and system compatibility
doubledup 2b56287
List supported systems explicitly
doubledup 1b9a4df
Remove clang package & comment out other unused dependencies
doubledup 6d50dcf
Suppress successful pre-commit hook output
doubledup 0859dff
Whitespace
doubledup a57966a
added cacert and LD_PATH to flake.nix
alistair-singh 89d2cb1
Switch local eth env to ipv6
doubledup f9f566a
Mark commands as shell in markdown
doubledup 992052f
Use source_up_if_exists in envrc templates
doubledup 04685ce
Re-add some dependencies needed by a pure shell
doubledup 4af86c3
Update packages & set HOME
doubledup f69b2b5
REVERTME Use cargo install for polkadot binary
doubledup d1c6286
Remove commented exports
doubledup c970e1b
Default to locally installed polkadot binary
doubledup 798a46f
Add rust-toolchain.toml
doubledup df5e2ac
Move polkadot install to parachain directory
doubledup f746590
Match Rust nightly used for polkadot 0.9.30
doubledup f47f9f3
Changed parachain build dir
alistair-singh 691a0df
Wrap all builds in single cd call
doubledup 03b43e9
Fix path to polkadot binary
doubledup ade3a86
Add note for stable channel
doubledup c39efe7
Fix relay chain bin in zombienet config
doubledup 5d0503a
Point lodestar directly to geth's ipv6 addresses
doubledup 6c7a8dd
Whitespace & sorting
doubledup 1002491
Switch eth services to ipv4
doubledup 066c2c9
s/localhost/127.0.0.1/g, except hardhat's localhost
doubledup be7e32e
Move `cargo install polkadot` into build script
doubledup 6233306
Indent launch-config like example config files
doubledup 568a72f
Create polkadot version directories when absent
doubledup 3c984de
added ps to nix env for zombienet on linux
alistair-singh 04ac710
Add explanation for ps nix package
doubledup 8a45fb3
Add explanation for LIBCLANG_PATH
doubledup 3f3e388
Remove unused packages
doubledup 908d5b8
Remove redundant trues
doubledup b758d00
Switch to nix-direnv
doubledup e5e9305
Merge branch 'main' into nix
doubledup 9a109b0
Add foundry overlay
doubledup 6c47c4d
Bump lockfiles
doubledup f436fd4
Bump workflow node version
doubledup 3b5eff7
Sync node versions to 18.13.0
doubledup 2386abc
Merge branch 'main' into nix
doubledup 79edef0
Bump node lockfile after merge
doubledup fac9e47
Use @zombienet/cli package
doubledup 9b42c33
Increase logging in zombienet config
doubledup dd56a49
Add gpg for commit signing during foundry install
doubledup 8716978
Track forge dependencies
doubledup 33bb2c4
Manual forge init
doubledup 4856332
forge install: ds-test
doubledup 6d3ee12
Remove shell.nix
doubledup 8bef816
Remove foundry Makefile
doubledup ea7abab
Ensure forge dependencies are available
doubledup ab1158b
Use debug instead of release where possible
doubledup d5fc39b
Run Rust builds for host CPU only
doubledup d9f1bfe
Update all READMEs
doubledup c51a4ea
Update test envrc template
doubledup 69586f6
Use debug builds of polkadot locally
doubledup 9938245
Revert "Use debug builds of polkadot locally"
doubledup 7758931
Revert "Run Rust builds for host CPU only"
doubledup f5cdad2
Revert "Use debug instead of release where possible"
doubledup ba7b20a
Clarify explanations in flake
doubledup File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then | ||
| source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs=" | ||
| fi | ||
|
|
||
| use flake |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -15,3 +15,11 @@ node_modules/ | |
|
|
||
| relaychain/ | ||
| .vscode | ||
|
|
||
| .rustup | ||
| .cargo | ||
|
|
||
| .DS_Store | ||
|
|
||
| .direnv | ||
| .envrc | ||
This file contains hidden or 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,7 @@ | ||
| [submodule "core/packages/contracts/lib/forge-std"] | ||
| path = core/packages/contracts/lib/forge-std | ||
| url = https://github.com/foundry-rs/forge-std | ||
| branch = v1.4.0 | ||
| [submodule "core/packages/contracts/lib/ds-test"] | ||
| path = core/packages/contracts/lib/ds-test | ||
| url = https://github.com/dapphub/ds-test |
This file contains hidden or 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,12 +1,17 @@ | ||
| #!/usr/bin/env sh | ||
| . "$(dirname -- "$0")/_/husky.sh" | ||
|
|
||
| set -e | ||
|
|
||
| echo 'Running pre-commit hook...' | ||
|
|
||
| # check typos | ||
| typos . | ||
| chronic typos . | ||
|
|
||
| # lint and format for core contracts and typescript codes | ||
| cd core && pnpm lint && pnpm format && cd .. | ||
| cd core && chronic pnpm lint && chronic pnpm format && cd .. | ||
|
|
||
| # lint and format for relayer codes | ||
| cd relayer && mage lint && go fmt ./... | ||
| cd relayer && chronic mage lint && chronic go fmt ./... | ||
|
|
||
| echo 'Pre-commit hook successful!' |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -11,7 +11,6 @@ coverage/ | |
| src/ | ||
| .vscode/ | ||
| deployments/ | ||
| lib/ | ||
| out/ | ||
| cache/ | ||
| broadcast/ | ||
|
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.