diff --git a/overlay/mkcrate.nix b/overlay/mkcrate.nix index fa64f849..adbe1ee5 100644 --- a/overlay/mkcrate.nix +++ b/overlay/mkcrate.nix @@ -177,7 +177,7 @@ let configureCargo = '' mkdir -p .cargo - cat > .cargo/config <<'EOF' + cat > .cargo/config.toml <<'EOF' [target."${rustBuildTriple}"] linker = "${ccForBuild}" '' + optionalString (codegenOpts != null && codegenOpts ? "${rustBuildTriple}") (''