summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2024-08-22 13:28:15 -0700
committerFlorian Klink <flokli@flokli.de>2024-08-23 09:36:47 +0300
commitbbb42450c52d5db817b5011aea2212dc270f2154 (patch)
tree6cc7a700e5a06f82603e18a9d8f639414fab6bf5 /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
parentab682c47b27786e6cc9bd4fdade3d1b3bf16216f (diff)
default-crate-overrides: proc-macro-crate assumes env::var("CARGO")
Since version 2.0.0, proc-macro-crate has assumed it can exec() `env::var("CARGO")` in order to run `cargo locate-project`. This commit adds a crate override to proc-macro-crate which simply writes the path to buildPlatform.cargo into the proc-macro-crate sources. This way we don't need to set `env.CARGO` for every build that depends on proc-macro-crate -- if we do that, the $CARGO environment variable would be visible to the entire build. This could potentially lead to incredibly hard-to-troubleshoot heisenbugs if there is some other crate that expects `env::var("CARGO")` to exist -- that other crate would mysteriously work only in projects that use proc-macro-crate but not anywhere else!
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
0 files changed, 0 insertions, 0 deletions