Skip to content

Commit caa2fef

Browse files
julius-boettgeroxalica
authored andcommitted
doc: make flake example follow actual code more closely
1 parent 4fd0051 commit caa2fef

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/cross_compilation.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,14 @@ get corresponding compiler toolchains for them.
7676
let
7777
pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgsCross.aarch64-multiplatform;
7878
rust-bin = rust-overlay.lib.mkRustBin { } pkgs.buildPackages;
79-
in pkgs.mkShell {
80-
nativeBuildInputs = [ rust-bin.stable.latest.minimal ];
81-
}
79+
in
80+
# Need `callPackage` here, see https://github.com/NixOS/nixpkgs/issues/49526
81+
pkgs.callPackage (
82+
{ mkShell }:
83+
mkShell {
84+
nativeBuildInputs = [ rust-bin.stable.latest.minimal ];
85+
}
86+
) { }
8287
```
8388

8489
The full example can be seen in

0 commit comments

Comments
 (0)