Skip to content
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

flake.nix: Attempt to setup nix builds #1

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

flake.nix: Attempt to setup nix builds #1

wants to merge 22 commits into from

Conversation

shazow
Copy link
Owner

@shazow shazow commented Jan 22, 2022

WIP.

nix develop works but nix build does not yet due to some naersk limitations.

@@ -17,11 +17,14 @@ codegen-units = 1
panic = "abort"
debug = true

[patch."https://github.com/gakonst/ethers-rs"]
ethers = "0.6.2"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nix builds run without network access for reproduceability. naersk (rust flake helper I'm using) fails to detect sub-workspaces' externally-accessed dependencies, so overriding here fixes this particular problem (but it's just a crutch for now).

@@ -25,7 +25,7 @@ thiserror = "1.0.29"
proptest = "1.0.0"
parking_lot = "0.11.2"
futures = "0.3.17"
revm_precompiles = { git = "https://github.com/bluealloy/revm", default-features = false, features = ["k256_ecrecover"] }
revm_precompiles = { git = "https://github.com/bluealloy/revm", default-features = false, features = ["k256_ecrecover"], branch = "main" }
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another naersk bug, it fails to resolve main instead of master by default. -_-

@@ -0,0 +1,74 @@
{
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we actually need to include the flake.lock here

onbjerg and others added 22 commits January 22, 2022 22:47
* fix: add rpc url alias

* fix: include ffi

* use unsanitized config

* fix: override ffi
)

* patch logBytes selectors for hardhat console

* Apply cargo fmt
* docs: document test-matchers with examples and patterns

* docs: fix typos

* Update cli/README.md

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
* feat: add more init options

* feat: add no git mode

* rustmft

* feat: check if dir is non empty

* feat: add no-deps alias

* fix: generate file before git

* fix failing tests
* Make remappings stack

* Fix tests

* make env remapping args stack

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
* Keep 3 days of nightlies

* Fix release asset names

* Version channel handling in `foundryup`

* Driveby: Use `foundry.paradigm.xyz`

* Fix rebase slipup

* Move GitHub scripts into their own files
* fix(config): use correct name for optimizer

* fix: failing test

* fix: don't set cwd on drop

* rustfmt

* fix: reset current dir on cmd drop
* Always maintain a nightly release tagged `nightly`

This works as a release channel: it is always possible to
download the latest nightly from the release tagged `nightly`.

Additionally, 3 nightlies tagged with `nightly-${SHA}` are kept,
allowing users to rollback to a specific nightly.

* Move `nightly` tag last

Ensures that newer `foundryup` installations don't fail
to update while the new `nightly-${SHA}` release is still missing
some release assets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants