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