mirror of
https://github.com/oxalica/rust-overlay.git
synced 2025-10-05 15:52:54 +02:00
doc: make flake example follow actual code more closely
This commit is contained in:
@@ -76,9 +76,14 @@ get corresponding compiler toolchains for them.
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgsCross.aarch64-multiplatform;
|
||||
rust-bin = rust-overlay.lib.mkRustBin { } pkgs.buildPackages;
|
||||
in pkgs.mkShell {
|
||||
in
|
||||
# Need `callPackage` here, see https://github.com/NixOS/nixpkgs/issues/49526
|
||||
pkgs.callPackage (
|
||||
{ mkShell }:
|
||||
mkShell {
|
||||
nativeBuildInputs = [ rust-bin.stable.latest.minimal ];
|
||||
}
|
||||
) { }
|
||||
```
|
||||
|
||||
The full example can be seen in
|
||||
|
Reference in New Issue
Block a user