nixpkgs/pkgs/build-support/rust
Mateusz Kowalczyk 233205c464
rustBuildCrate: properly handle cargo env pragmas with spaces
There are two problems: first that we end up splitting on spaces in the
loop. Even when that is fixed, we still would split on spaces in the
`export` inside the loop. We need to guard against both.

Fixes #199298

Confirmed that it fixes the case mentioned in the ticket:

```console
[nix-develop]$ $(nix-build -I nixpkgs=/home/shana/programming/nixpkgs Cargo.nix -A rootCrate.build  --no-out-link)/bin/nix-rustc-env-escape-repro
Expecting three words, got: first second third
```

I think this is going to cause a rebuild of every Rust package even if
they were unaffected, not much we can do here.
2022-11-03 14:49:24 +09:00
..
build-rust-crate rustBuildCrate: properly handle cargo env pragmas with spaces 2022-11-03 14:49:24 +09:00
build-rust-package Merge master into staging-next 2022-10-02 00:04:43 +00:00
fetch-cargo-tarball fetch-cargo-tarball: fix for packages without dep 2022-08-21 16:28:28 +08:00
hooks buildRustPackage: dont rely on NIX_BUILD_TOP in cargoSetupPostPatchHook 2022-09-25 16:17:36 +02:00
lib rustc: fix build for no_std targets 2022-10-07 07:35:29 -07:00
sysroot
test/import-cargo-lock
carnix.nix
crates-io.nix
default-crate-overrides.nix default-crate-overrides.nix: add libevdev for evdev-rs 2022-08-14 21:20:55 -07:00
fetchcargo-default-config.toml
fetchcrate.nix
import-cargo-lock.nix