Conversation
build with ``` nix build ``` run like ``` result/bin/ic-repl --help ```
| nixpkgs, | ||
| rust-overlay, | ||
| }: let | ||
| system = "aarch64-darwin"; |
There was a problem hiding this comment.
You could also consider using flake-utils like we do in motoko to support all common systems.
There was a problem hiding this comment.
Yeah, gonna cross-study. I am at present just copying the ggreif/sdk flake recipe!
There was a problem hiding this comment.
I couldn't get nix develop working yet! Any idea what I am getting wrong?
There was a problem hiding this comment.
You correctly added a devShells.${system}.default so that''s good. What error are you getting?
There was a problem hiding this comment.
It also seems you're using pkgs.mkShell correctly.
There was a problem hiding this comment.
$ nix develop
error:
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:37:12:
36|
37| strict = derivationStrict drvAttrs;
| ^
38|
… while evaluating derivation 'nix-shell'
whose name attribute is located at /nix/store/x9wnkly3k1gkq580m90jjn32q9f05q2v-source/pkgs/stdenv/generic/make-derivation.nix:439:13
… while evaluating attribute '__impureHostDeps' of derivation 'nix-shell'
at /nix/store/x9wnkly3k1gkq580m90jjn32q9f05q2v-source/pkgs/stdenv/generic/make-derivation.nix:579:15:
578| );
579| __impureHostDeps =
| ^
580| computedImpureHostDeps
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: opening file '/nix/store/jwjajnviyim6mzpsbdwin496gv88x04b-source/rust-toolchain.toml': No such file or directory
There was a problem hiding this comment.
I guess this dev-dependency needs to be declared?
There was a problem hiding this comment.
It means you didn't add rust-toolchain.toml to git.
There was a problem hiding this comment.
Yeah, there is no such file. Maybe later. Kind-of negates devShell, but no biggie.
build with
run like