We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fd0051 commit caa2fefCopy full SHA for caa2fef
docs/cross_compilation.md
@@ -76,9 +76,14 @@ get corresponding compiler toolchains for them.
76
let
77
pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgsCross.aarch64-multiplatform;
78
rust-bin = rust-overlay.lib.mkRustBin { } pkgs.buildPackages;
79
-in pkgs.mkShell {
80
- nativeBuildInputs = [ rust-bin.stable.latest.minimal ];
81
-}
+in
+# Need `callPackage` here, see https://github.com/NixOS/nixpkgs/issues/49526
+pkgs.callPackage (
82
+ { mkShell }:
83
+ mkShell {
84
+ nativeBuildInputs = [ rust-bin.stable.latest.minimal ];
85
+ }
86
+) { }
87
```
88
89
The full example can be seen in
0 commit comments