minimal-x86-64/nixos-minimal-25.05.813814.ac62194c3917-x86_64-linux/nix-store.squashfs.d/crs1ks6b3513ymkmxn8g4iivxz95gvkf-nixos-25.05.813814.ac62194c3917/nixos/pkgs/build-support/testers
Shell command variable at a command boundaryShell command redirects output to file
SHA-25619528c30f3954f0b83a74d2b9b8478cbca0bd31634238ac486cb4ea00592d4c3
MaleculeH₂(FPo₂)
Evidence
1# Run a builder, flip exit code, save log and fix outputs
2#
3# Sub-goals:
4# - Delegate to another original builder passed via args
5# - Save the build log to output for further checks
6# - Make the derivation succeed if the original builder fails
7# - Make the derivation fail if the original builder returns exit code 0
8#
9# Requirements:
10# This runs before, without and after stdenv. Do not modify the environment;
11# especially not before i …
21:23… : Expecting non-zero exit from builder and args: ${*@Q}"
22
23("$@" 2>&1) | @coreutils@/bin/tee $TMPDIR/testBuildFailure.log \
24 | while IFS= read -r ln; do
25 echo "original builder: $ln"
⋯5 lines
38:51… nv/generic/source-stdenv.sh
39#
40# We need this so that we can read $outputs when `__structuredAttrs` is enabled
41#
42# NOTE: This MUST be done after the original builder has finished!
⋯7 lines
60:24… ]]; then
61 if [[ -e $defOutPath ]]; then
62 @coreutils@/bin/mv $defOutPath $TMPDIR/out-node
63 @coreutils@/bin/mkdir $defOutPath
64 @coreutils@/bin/mv $TMPDIR/out-node $defOutPath/result
⋯4 lines
69:18… v $TMPDIR/testBuildFailure.log $defOutPath/testBuildFailure.log
70echo $r >$defOutPath/testBuildFailure.exit
71
72# ------------------------------------------------------
73# Put empty directories in place for any missing outputs
74
75for outputP …