nixpkgs/pkgs/build-support
Ivar Scholten 987d32bbac buildRustPackage: dont rely on NIX_BUILD_TOP in cargoSetupPostPatchHook
This breaks the builder when a nix-shell or keepBuildTree is used. The
issue occurs because paths to cargo lockfiles are read with NIX_BUILD_TOP,
which is not reliable.

This breaks a nix-shell because NIX_BUILD_TOP simply is not set, causing
an invalid path to be used. This can be worked around using
NIX_BUILD_TOP=$PWD, but that obviously is not great.

This breaks keepBuildTree because it changes the working directory to a
different path than NIX_BUILD_TOP. Since the lockfiles are copied based
on the working directory, but read based on NIX_BUILD_TOP, this causes
the hook to not be able to find them.

This was solved by both reading these files based on the working directory,
using absolute paths to avoid having to traverse back in the directory tree.

Fixes: #138554
2022-09-25 16:17:36 +02:00
..
add-opengl-runpath
agda
alternatives
appimage appimageTools.wrapAppImage: default produced derivations to sourceProvenance binaryNativeCode 2022-06-11 17:17:12 +01:00
bintools-wrapper bintools-wrapper, cc-wrapper: avoid invalid export of 'expand-response-params' 2022-07-31 16:31:13 +01:00
build-bazel-package buildBazelPackage: run in batch mode to avoid requiring loopback networking 2022-09-11 12:51:57 -04:00
build-fhs-userenv buildFHSUserEnv: append graphics share to XDG_DATA_DIR 2022-03-24 12:53:39 -07:00
build-fhs-userenv-bubblewrap build-fhs-userenv-bubblewrap: fix eval 2022-08-17 22:36:45 +03:00
build-graalvm-native-image buildGraalvmNativeImage: allow LC_ALL overrides 2022-07-03 18:16:38 +01:00
build-setupcfg
buildenv
cc-wrapper cc-wrapper: comment explaining C++ stdlib order 2022-09-20 12:14:51 +02:00
coq coqPackages.lib.overrideCoqDerivation: update documentation for overriding version 2022-09-11 07:41:17 +09:00
dhall
docker nixosTests.docker-tools: Add image-with-certs 2022-09-21 01:00:04 +01:00
dotnet build-dotnet-module/fetch-deps: fixup temp naming when pname has a capital X in it 2022-09-16 09:18:22 -07:00
emacs package-build: don't use mtime when creating tarballs 2022-09-18 10:02:53 +01:00
expand-response-params treewide: add enableParallelBuilding's to bootstrap packages so hashes stay the same 2022-05-25 16:03:14 +03:00
fake-nss
fetchbitbucket
fetchbower
fetchbzr
fetchcvs treewide: fix bash exit handlers 2022-07-02 16:13:12 +02:00
fetchdarcs
fetchdocker
fetchfirefoxaddon testers.invalidateFetcherByDrvHash: Move from top-level 2022-05-05 12:08:50 +02:00
fetchfossil
fetchgit fetchgit: allow disabling cone mode for sparse checkouts, fix test 2022-08-14 23:03:07 +02:00
fetchgitea
fetchgithub unstableGitUpdater: fix updating fetchzip-based sources 2022-05-24 19:12:12 +02:00
fetchgitiles
fetchgitlab unstableGitUpdater: fix updating fetchzip-based sources 2022-05-24 19:12:12 +02:00
fetchgitlocal
fetchgx
fetchhg
fetchipfs
fetchmavenartifact
fetchmtn
fetchnextcloudapp fetchnextcloudapp: name -> pname 2022-07-26 10:58:06 +02:00
fetchpatch testers.invalidateFetcherByDrvHash: Move from top-level 2022-05-05 12:08:50 +02:00
fetchrepoorcz
fetchrepoproject
fetchs3
fetchsavannah
fetchsourcehut treewide: extraPostFetch -> postFetch 2022-05-23 17:18:50 +03:00
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchurl Merge pull request #187884 from helsinki-systems/feat/perl-sri 2022-08-24 17:28:04 +02:00
fetchzip fetchzip: force UTF-8 compatibel locale to unpack non-ASCII symbols 2022-06-11 11:25:58 +01:00
flutter
go buildGo{Module,Package}: don't run vet linter 2022-08-20 07:37:14 +10:00
icon-conv-tools
install-shell-files
java
kernel make-initrd-ng: clean up a bit 2022-08-02 10:54:55 +03:00
libredirect libredirect: Fix cross compilation buildPackages 2022-07-20 10:26:48 +12:00
make-darwin-bundle Merge pull request #165111 from toonn/darwin-bundle-outputBin 2022-04-22 12:04:09 +01:00
make-desktopitem build-support/makeDesktopItem: make overridable 2022-06-09 15:32:44 +01:00
make-pkgconfigitem makePkgconfigItem: init new function to generate pc files 2022-07-20 06:22:39 +03:00
make-startupitem
make-symlinks
mkshell
mono-dll-fixer
nix-gitignore
node/fetch-yarn-deps fetchYarnDeps: support hash in pkg.integrity (#177255) 2022-06-15 20:13:41 +02:00
nuke-references treewide: add enableParallelBuilding's to bootstrap packages so hashes stay the same 2022-05-25 16:03:14 +03:00
ocaml treewide: Simplify negated uses of versionAtLeast, versionOlder 2022-04-25 13:35:24 -07:00
oci-tools
pkg-config-wrapper treewide: add enableParallelBuilding's to bootstrap packages so hashes stay the same 2022-05-25 16:03:14 +03:00
prefer-remote-fetch prefer-remote-fetch: don't overwrite fetcher's which set preferLocalBuild explicitly 2022-06-03 14:05:37 +02:00
references-by-popularity
release
remove-references-to removeReferencesTo: kill lone hashes 2022-08-25 17:25:58 +02:00
replace-secret
rust buildRustPackage: dont rely on NIX_BUILD_TOP in cargoSetupPostPatchHook 2022-09-25 16:17:36 +02:00
setup-hooks Merge pull request #186323 from ShamrockLee/make-setuphook-passthru 2022-09-19 11:30:37 +01:00
singularity-tools
skaware skawarePackages.buildPackage: fix typo in comment 2022-05-09 15:52:56 +00:00
snap
src-only srcOnly: fix with separateDebugInfo and/or multiple outputs 2022-07-02 19:32:24 +02:00
substitute
substitute-files
templaterpm maintainers: remove tstrobel 2022-06-29 00:54:53 +02:00
testers testers.testVersion: if grep failed then print the output of the command 2022-05-16 16:16:35 +03:00
trivial-builders treewide: nixosTest -> testers.nixosTest 2022-05-09 14:16:06 +02:00
vm treewide: change some glibc to stdenv.cc.libc 2022-05-27 05:57:43 +03:00
wrapper-common
writers writers.makePythonWriter: fix cross compile 2022-08-25 17:46:34 -07:00
build-maven.nix
build-pecl.nix
closure-info.nix
plugins.nix
replace-dependency.nix replace-dependency: fix a syntax error while generating references.nix 2022-06-12 06:44:30 +04:00
setup-systemd-units.nix
source-from-head-fun.nix
trivial-builders.nix Merge pull request #186323 from ShamrockLee/make-setuphook-passthru 2022-09-19 11:30:37 +01:00