Merge pull request #83481 from alyssais/buildRustCrate

buildRustCrate: fewer backslashes
This commit is contained in:
Andreas Rammhold 2020-03-27 11:37:06 +01:00 committed by GitHub
commit 0258808f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ stdenv.mkDerivation (rec {
);
crateFeatures = lib.optionalString (crate ? features)
(lib.concatMapStringsSep " " (f: "--cfg feature=\\\"${f}\\\"") (crate.features ++ features));
(lib.concatMapStringsSep " " (f: ''--cfg feature=\"${f}\"'') (crate.features ++ features));
libName = if crate ? libName then crate.libName else crate.crateName;
libPath = if crate ? libPath then crate.libPath else "";