summaryrefslogtreecommitdiffstats
path: root/pkgs/build-support/bintools-wrapper/default.nix
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-07-31 16:26:35 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-07-31 16:31:13 +0100
commit549e08c8e8a0e79952227c3300702d3d0fbb71a8 (patch)
tree3af24cfd6a5f8292155b0d78837c3c258db55046 /pkgs/build-support/bintools-wrapper/default.nix
parent24ae20a45532d9fbe629ecaea69d84bc87c8f033 (diff)
bintools-wrapper, cc-wrapper: avoid invalid export of 'expand-response-params'
POSIX sh (and `bash`) impose a restriction on environment variable name format and disallow hypheps in the names. Normally it's not a problem as nothing usually tries to refer nyphenated names. One exception is `nix develop` (https://github.com/NixOS/nix/issues/6848): $ nix develop -f. gcc -L gcc-wrapper> ...-get-env.sh: line 70: expand-response-params: bad substitution Note that bash usually uses explicitly created `expandResponseParams` variant of the same variable. To work the problem around let's avoid environment variable export and move it to `passthru` for `cc` (used ina few places) and remove it completely for `binutils` (does not seem to be used at all).
Diffstat (limited to 'pkgs/build-support/bintools-wrapper/default.nix')
-rw-r--r--pkgs/build-support/bintools-wrapper/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/bintools-wrapper/default.nix b/pkgs/build-support/bintools-wrapper/default.nix
index cdd07d6b2efe..b54983986dbe 100644
--- a/pkgs/build-support/bintools-wrapper/default.nix
+++ b/pkgs/build-support/bintools-wrapper/default.nix
@@ -365,7 +365,7 @@ stdenv.mkDerivation {
##
+ extraBuildCommands;
- inherit dynamicLinker expand-response-params;
+ inherit dynamicLinker;
# for substitution in utils.bash
expandResponseParams = "${expand-response-params}/bin/expand-response-params";