| 3 Aug 2023 |
raitobezarius | Hello there, is there any doc on how to use a cross compiled bootstrap tool to replace the ones that nixpkgs bundles? | 22:31:44 |
| 6 Aug 2023 |
vcunat | https://github.com/NixOS/nixpkgs/pull/247478 | 07:52:25 |
| 10 Aug 2023 |
p14 | I want to try and debug the lack of an $AR variable set while building a package without incurring a full rebuild. Is there a good way to turn on tracing (set -x) while all the setup scripts run for nix develop? (context: https://github.com/NixOS/nixpkgs/pull/246577#issuecomment-1672980907) | 10:44:44 |
Artturin | In reply to @p14:matrix.org I want to try and debug the lack of an $AR variable set while building a package without incurring a full rebuild. Is there a good way to turn on tracing (set -x) while all the setup scripts run for nix develop? (context: https://github.com/NixOS/nixpkgs/pull/246577#issuecomment-1672980907) NIX_DEBUG is the variable used by setup.sh | 10:52:12 |
Artturin | Set it to 6 | 10:52:17 |
p14 | Ah, thanks. I also managed to turn it on directly using preHook = "set -x" which revealed that:
/nix/store/9kaazhysw3pmzlrslpb1nsgy97hq8hlm-x86_64-unknown-linux-gnu-llvm-binutils-wrapper-15.0.7/nix-support/setup-hook
is empty
where
/nix/store/kcc44cgi7bclnhgs66v50a1jhr6nsqy5-x86_64-unknown-linux-gnu-llvm-binutils-wrapper-16.0.6/nix-support/setup-hook
is 5 kiB | 10:52:50 |
p14 | and explains the missing $AR. | 10:53:00 |
p14 | But the nix-diff of the llvm-binutils wrapper is pretty boring | 10:53:40 |
p14 | uuuh, I turned on NIX_DEBUG and now 15.0.7's setup-hook is not empty. Nice.. | 10:59:58 |
p14 | Oh dear. Turning on NIX_DEBUG for the binutils wrapper actually causes debug print output to end up in setup-hook. | 11:01:43 |