nixpkgs/pkgs/build-support
Adam Joseph bbb42450c5 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!
2024-08-23 09:36:47 +03:00
..
add-driver-runpath addDriverRunpath: init 2023-12-03 07:22:51 -08:00
agda build-support/agda: expose mkLibraryFile 2024-07-04 14:51:30 +02:00
alternatives treewide: simplify exec format conditionals 2024-01-07 17:43:33 -08:00
appimage appimage-run: Expose $APPIMAGE 2024-07-24 15:17:30 +02:00
binary-cache pkgs/build-support: refactor drvs using __structuredAttrs = true 2023-10-04 18:37:00 +02:00
bintools-wrapper Merge master into staging-next 2024-08-12 18:02:11 +00:00
build-bazel-package
build-fhsenv-bubblewrap buildFHSEnv: replace all chroot occurences with generic names 2024-07-28 22:39:35 +02:00
build-fhsenv-chroot treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
build-graalvm-native-image buildGraalvmNativeImage: fix UTF-8 encoding issue for JVM dependencies 2024-01-26 11:12:54 +00:00
buildenv build-support/buildenv: Hoist builder instantiation 2023-12-29 03:04:46 +13:00
cc-wrapper Merge pull request #317224 from ju1m/NIX_CFLAGS_COMPILE 2024-07-28 20:18:22 -04:00
compress-drv compressDrv: fix a confusing comment 2024-08-21 21:52:00 +03:00
coq mkCoqDerivation: fix install path of ML plug-in built w/ dune 2024-06-25 21:07:57 +02:00
dart dartHooks.dartInstallHook: Add trailing newline 2024-01-18 12:17:43 +11:00
deterministic-uname Merge master into staging-next 2024-06-07 00:02:15 +00:00
dev-shell-tools nixosTests.docker-tools-nix-shell: Enable on aarch64-linux 2024-07-29 00:23:05 +02:00
dhall
dlang dub-to-nix,buildDubPackage: allow git-type dependencies 2024-05-08 14:01:35 +02:00
docker streamLayeredImage: add dynamic tagging of docker image (#329425) 2024-07-29 19:45:58 +02:00
dotnet buildDotnetModule: add finalAttrs support 2024-08-06 16:33:49 +01:00
expand-response-params expand-response-params: add description 2024-04-18 20:49:13 +02:00
fake-nss
fetch9front
fetchbitbucket
fetchbower
fetchbzr treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
fetchcvs treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
fetchdarcs treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
fetchdebianpatch fetchDebianPatch: Require patch names with extensions 2023-09-14 18:55:30 +00:00
fetchdocker Merge staging-next into staging 2023-10-21 00:02:49 +00:00
fetchfirefoxaddon
fetchfossil fetchfossil: support SRI hashes 2023-11-22 09:47:57 +01:00
fetchgit fetchgit: Support fetching signed tags over dumb http transport 2024-04-22 02:16:02 +02:00
fetchgitea
fetchgithub fetchFromGitHub: fix compatibility issue with nix-prefetch 2024-01-30 12:21:13 +01:00
fetchgitiles
fetchgitlab Merge pull request #268304 from panicgh/fetchgitlab-sparse-forcegit 2023-12-17 03:34:52 +01:00
fetchgitlocal
fetchgx
fetchhg treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
fetchipfs treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
fetchmavenartifact
fetchmtn treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
fetchnextcloudapp fetchNextcloudApp: use fetchurl by default 2024-08-05 03:53:38 -07:00
fetchpatch fetchpatch: add patchutils to nativeBuildInputs 2024-07-01 18:09:00 +03:00
fetchpijul build-support/fetchpijul: Enable strictDeps 2023-12-06 18:40:07 +01:00
fetchpypi
fetchpypilegacy fetchPypiLegacy: Pass cacert to enable TLS verification when username/password is used 2024-08-14 13:22:31 +12:00
fetchrepoorcz
fetchrepoproject Avoid top-level with ...; in pkgs/build-support/fetchrepoproject/default.nix 2024-03-19 22:31:19 +01:00
fetchs3
fetchsavannah
fetchsourcehut Avoid top-level with ...; in pkgs/build-support/fetchsourcehut/default.nix 2024-03-19 22:31:19 +01:00
fetchsvn fetchsvn: remove with statements 2024-08-18 06:31:14 -07:00
fetchsvnrevision
fetchsvnssh treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
fetchtorrent treewide: remove unused lib (and other) arguments 2024-07-26 11:18:09 +02:00
fetchurl fetchurl: add codemirror.dlang.org to the list of dub mirrors 2024-04-21 18:51:45 +10:00
fetchzip fetchzip: allow dropping unzip 2024-01-12 20:26:16 +01:00
flutter buildFlutterApplication: use the engine 2024-06-14 21:01:19 -07:00
go buildGoPackage: deprecate 2024-07-21 12:50:54 +02:00
icon-conv-tools
install-shell-files
kernel make-initrd-ng: also print json itself if it fails to parse 2024-08-02 10:24:34 +02:00
lib build-support/meson: explicitly use ambiant CMake during cross compilation 2024-05-11 13:32:14 +02:00
libredirect libredirect: use llvmPackages unconditionally 2024-07-13 10:59:41 -04:00
make-darwin-bundle writeDarwinBundle: use binary wrapper 2023-08-21 13:29:12 +10:00
make-desktopitem make-desktopitem: fix file extension for type directory 2024-07-03 23:23:30 +08:00
make-hardcode-gsettings-patch makeHardcodeGsettingsPatch: Support applying patches 2023-11-21 08:42:47 +01:00
make-pkgconfigitem treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
make-startupitem make-startupitem: fix {prepend,append}ExtraArgs for Exec without arguments 2024-08-18 12:28:06 +02:00
mitm-cache mitm-cache: init at 0.1.1 2024-07-12 18:24:47 +07:00
mkshell doc: add explanatory code comment 2023-11-13 20:59:33 +01:00
mono-dll-fixer
nix-gitignore Avoid top-level with ...; in pkgs/build-support/nix-gitignore/default.nix 2024-03-19 22:31:19 +01:00
node importNpmLock: init fetcherOps per package 2024-08-13 09:38:37 +02:00
nuke-references nuke-references: add meta.mainProgram 2024-01-05 15:04:14 -05:00
ocaml build-support/ocaml: deprecate minimumOCamlVersion (#319907) 2024-06-21 10:29:31 +02:00
oci-tools ociTools.buildContainer: writeReferencesToFile -> writeClosure 2024-03-19 05:30:54 +08:00
php build-support/php: implement v2 2024-08-15 13:43:00 +02:00
pkg-config-wrapper pkg-config: set prefixed mainProgram for cross compilation 2024-04-04 14:55:10 -04:00
portable-service
prefer-remote-fetch prefer-remote-fetch: add more fetchers which prefer local builds 2023-11-29 10:25:20 +01:00
references-by-popularity referenceByPopularity: rename in comment writeReferencesToFile -> writeClosure 2024-03-19 05:30:53 +08:00
release Avoid top-level with ...; in pkgs/build-support/release/default.nix 2024-03-19 22:31:19 +01:00
remove-references-to treewide: add meta.mainProgram to packages with a single binary 2024-03-19 03:14:51 +01:00
replace-secret replace-secret: add mainProgram 2023-11-26 16:27:42 +02:00
replace-vars replaceVars: init 2024-08-07 07:27:50 -07:00
rust default-crate-overrides: proc-macro-crate assumes env::var("CARGO") 2024-08-23 09:36:47 +03:00
setup-hooks mpiCheckPhaseHook: update to use openmpi-5 compatible parameters 2024-08-12 21:45:24 +02:00
singularity-tools singularity-tools: don't preserve store content ownership 2024-08-15 21:33:18 +08:00
src-only Reapply "srcOnly: reflink if possible and preserve attributes" 2024-05-27 13:41:36 +02:00
substitute Merge pull request #291569 from Luflosi/fix-substituteAll-typo 2024-04-04 18:07:15 +08:00
substitute-files
testers Merge pull request #334995 from pbsds/fix-test-version-1723771306 2024-08-17 07:53:03 -07:00
trivial-builders Merge pull request #333262 from nbraud/doc/runCommandWith 2024-08-19 12:29:58 -07:00
vm vmTools: allow qemu to be overridden via customQemu argument 2024-07-08 19:47:08 +01:00
wrapper-common
writers makePythonWriter: add doCheck toggle 2024-08-21 19:17:36 +02:00
checkpoint-build.nix checkpointBuildTools.prepareCheckpointBuild: stop at install 2024-03-13 20:11:31 +08:00
closure-info.nix closureInfo: handle empty path set explicitly 2023-11-04 09:54:41 +01:00
make-impure-test.nix
plugins.nix
replace-dependency.nix Avoid top-level with ...; in pkgs/build-support/replace-dependency.nix 2024-03-19 22:31:19 +01:00
setup-systemd-units.nix
source-from-head-fun.nix