You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example docs for hello-world the rust workspace is built using:
# the flake.nix file is spliced here for brevity...# create the workspace & dependencies package setrustPkgs=pkgs.rustBuilder.makePackageSet{rustVersion="1.75.0";packageFun=import./Cargo.nix;};# rest of flake...
I usually create my development environments through a single rustToolchain file like so:
# again the flake is spliced for brevity...# 👇 note that it refers to the path ./rust-toolchain.tomlrustToolchain=pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile./rust-toolchain.toml;inwithpkgs;{devShells.default=mkShell{buildInputs=[rustToolchain];};# rest of flake.nix....
Not saying this is the best approach, I am just curious if something like this is possible in the build dev-env section for cargo2nix? Thanks for your time.
The text was updated successfully, but these errors were encountered:
rustToolchain=pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile./rust-toolchain.toml;rustPkgs=pkgs.rustBuilder.makePackageSet{rustupToolchain=rustupToolchain;# not sure what the declaring variable would be herepackageFun=import./Cargo.nix;# ...
In the example docs for hello-world the rust workspace is built using:
I usually create my development environments through a single rustToolchain file like so:
Not saying this is the best approach, I am just curious if something like this is possible in the build dev-env section for cargo2nix? Thanks for your time.
The text was updated successfully, but these errors were encountered: