-
Notifications
You must be signed in to change notification settings - Fork 86
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
Test Nix on CI #385
Test Nix on CI #385
Conversation
nativeBuildInputs = [ toolchain ]; | ||
RUST_SRC_PATH = rustPlatform.rustLibSrc; | ||
] ++ [ toolchain ]; | ||
RUST_SRC_PATH = toolchain.availableComponents.rust-src; |
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.
This part I'm not sure about, I assume this is for VSCode integration? I don't have that or know how to check if this is still making Rust's source code available for inspection with RLS
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.
This seems to be necessary for rust-analyzer, for the development environment. See https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570
Trying to run rust-analyzer from the dev environment, I get another problem though:
(nix:nix-shell-env) mks@Navi:~/Projects/amber$ rust-analyzer
error: Unknown binary 'rust-analyzer' in official toolchain 'stable-x86_64-unknown-linux-gnu'.
* Build Nix package on CI * Resolve duplicate inputs and flake update * Switch to rust-overlay * Check that the `bc` command is included and set path works correctly * Exit if check fails * Move Nix checks to its own workflow
I was recently unable to build because of the wrapProgram issue #359. That is now resolved, but it would be good to test that Amber is building correctly with Nix on CI. I've added a workflow job to do that.
I also noticed that you have duplicate nixpkgs coming in through naersk. I have configured naersk to use the same nixpkgs as the Amber project is using.