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/satWhich 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 <jakub@status.im>
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.
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.
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 <jakub@status.im>
Signed-off-by: Jakub Sokołowski <jakub@status.im>
79672bc to
9583ed2
Compare
And some other Nix related fixes.