-
Notifications
You must be signed in to change notification settings - Fork 251
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
fix loading Nix Flake shell via direnv, update readme #6807
Conversation
9802295
to
20559b4
Compare
440e8da
to
0e15e01
Compare
There is an issue with Nimble build and missing
This is caused by this import: when defined(nimNimbleBootstrap):
import ../dist/sat/src/sat/sat
else:
import sat/sat Which hits the |
0e15e01
to
bfec79e
Compare
I have checked and indeed the hash issues appear to be caused by some Nix caching mechanism which messes with results. Indeed use of Line 9 in bfec79e
I need to research how to avoid these Nix caching confusion. |
Signed-off-by: Jakub Sokołowski <[email protected]>
bfec79e
to
79672bc
Compare
If you see the line 14 error, it's the wrong/old Nimble version. Nimble 0.16.2 attempts to import |
Indeed, this is the hash caching behavior that we talked about. Did you review the PR? |
|
||
mkdir -p .flake-profiles | ||
eval "$(nix print-dev-env --profile ".flake-profiles/profile")" | ||
if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there something specific/special about version 3.0.6 or is this a way of pinning a semi-arbitrary version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the same version we've been using in all of our infra-*
repositories for our Nix Flake shell for a few months now:
https://github.com/status-im/infra-template/blob/3c85b88671a8b48c5d267801bf0ad678f0e739d4/.envrc#L1-L3
So it's known to be stable.
Mostly fine/reasonable, a couple questions |
Signed-off-by: Jakub Sokołowski <[email protected]>
Signed-off-by: Jakub Sokołowski <[email protected]>
79672bc
to
9583ed2
Compare
And some other Nix related fixes.