these 6 derivations will be built: /nix/store/9sjj9hkbfwh64r8i7swpx81a52pcd2s3-source.drv /nix/store/46appi12sgdyybr4djs4gfmv6k1s9ban-wrap-buddy-1.0.0.drv /nix/store/6hgz1r6j0mxc3a936yx6ljgwjhm7yvfy-wrap-buddy-hook.drv /nix/store/nc0gj0p5dmgarn9inq7958ib81asvi1g-claude.drv /nix/store/xrkz6x6xzj9yqzqk09qkrlxgcjrkxsyw-claude-code-2.1.308.drv /nix/store/qp8a4xma111adliq6lahcz87c279pxfp-claude.drv these 7 paths will be fetched (2.2 MiB download, 24.3 MiB unpacked): /nix/store/sc4d19mn2afhwf8bj5a5dzpz1sp8j2sz-ShellCheck-0.11.0 /nix/store/mvj6y8k3xs35cj7kq937xi44q4hl3r93-bubblewrap-0.12.0 /nix/store/1kv87cpja1kc821flcky6yy93dyhk8fk-libcap-2.78-lib /nix/store/q13h0adq7mw2ax4pa7wmqzrghq31w2ia-pueue-4.0.4 /nix/store/a38b23fzz9429a0j4pkqmdzkr2cj46xx-strace-7.3 /nix/store/a9i0dyghvdasdjz21hhgl0z990057qx9-tinyxxd-1.3.17 /nix/store/rrbkzimzjscks8wpdm5m1pyrg544ixc9-xxd-tinyxxd-1.3.17 building '/nix/store/yw91f6k16dscjjhjjkgcvz1gzdqfyh05-claude.drv' building '/nix/store/0y63fnwqdj1fac1wmckn5zp9sy49rrrm-source.drv' claude> tribuchet: building on psi source> tribuchet: building on psi claude> structuredAttrs is enabled claude> claude> trying https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.308/linux-x64/claude source> structuredAttrs is enabled source> source> trying https://github.com/Mic92/wrap-buddy/archive/ba5ab56ddc572482c26b2cf08414befc5f66ad40.tar.gz source> % Total % Received % Xferd Average Speed Time Time Time Current source> Dload Upload Total Spent Left Speed source> source> 0 0 0 0 0 0 0 0 0 source> 0 0 0 0 0 0 0 0 0 source> 0 0 0 0 0 0 0 0 0 source> source> 0 0 0 0 0 0 0 0 0 source> 100 36633 100 36633 0 0 71995 0 0 source> 100 36633 100 36633 0 0 71985 0 0 source> 100 36633 100 36633 0 0 71978 0 0 source> unpacking source archive /build/download.tar.gz claude> % Total % Received % Xferd Average Speed Time Time Time Current claude> Dload Upload Total Spent Left Speed claude> claude> 0 0 0 0 0 0 0 0 0 claude> 4 278.6M 4 13.79M 0 0 11.07M 0 00:25 00:01 00:24 13.79M claude> 14 278.6M 14 39.13M 0 0 17.26M 0 00:16 00:02 00:14 19.36M claude> 25 278.6M 25 70.81M 0 0 21.68M 0 00:12 00:03 00:09 23.44M claude> 36 278.6M 36 101.4M 0 0 23.77M 0 00:11 00:04 00:07 25.22M claude> 47 278.6M 47 132.4M 0 0 25.15M 0 00:11 00:05 00:06 26.38M claude> 58 278.6M 58 163.2M 0 0 26.05M 0 00:10 00:06 00:04 29.77M claude> 69 278.6M 69 192.7M 0 0 26.52M 0 00:10 00:07 00:03 30.71M claude> 74 278.6M 74 207.4M 0 0 25.09M 0 00:11 00:08 00:03 27.32M claude> 85 278.6M 85 238.9M 0 0 25.78M 0 00:10 00:09 00:01 27.50M claude> 96 278.6M 96 268.9M 0 0 26.19M 0 00:10 00:10 27.29M claude> 100 278.6M 100 278.6M 0 0 26.30M 0 00:10 00:10 27.29M claude> 100 278.6M 100 278.6M 0 0 26.30M 0 00:10 00:10 27.29M claude> 100 278.6M 100 278.6M 0 0 26.30M 0 00:10 00:10 27.29M building '/nix/store/46appi12sgdyybr4djs4gfmv6k1s9ban-wrap-buddy-1.0.0.drv' wrap-buddy-1.0.0> tribuchet: building on psi wrap-buddy-1.0.0> Running phase: unpackPhase wrap-buddy-1.0.0> unpacking source archive /nix/store/narnbxbbn9wqa7z715m2x7ycrss2gsj0-source wrap-buddy-1.0.0> source root is source wrap-buddy-1.0.0> Running phase: patchPhase wrap-buddy-1.0.0> Running phase: updateAutotoolsGnuConfigScriptsPhase wrap-buddy-1.0.0> Running phase: configurePhase wrap-buddy-1.0.0> no configure script, doing nothing wrap-buddy-1.0.0> Running phase: buildPhase wrap-buddy-1.0.0> build flags: -j24 SHELL=/nix/store/nnm9gdr70ihc6zc9298mzz8jpcgaciql-bash-5.3p20/bin/bash CXX_FOR_BUILD=/nix/store/r5ri78axx1qggkjq3vawywlzglg70b5w-gcc-wrapper-16.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 LIBC_LIB=/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib BUILD_32BIT=1 wrap-buddy-1.0.0> gcc -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Os -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -o loader.elf src/loader/loader.c wrap-buddy-1.0.0> gcc -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Os -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -DLOADER_PATH='"/nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0/lib/wrap-buddy/loader.bin"' -Iinclude -o stub.elf src/stub/stub.c wrap-buddy-1.0.0> gcc -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Os -Iinclude -m32 -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -o loader32.elf src/loader/loader.c wrap-buddy-1.0.0> gcc -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Os -Iinclude -m32 -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -DLOADER_PATH='"/nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0/lib/wrap-buddy/loader32.bin"' -o stub32.elf src/stub/stub.c wrap-buddy-1.0.0> /nix/store/y6ri2r743ckh5kk160r461czl9n2f2wf-binutils-2.46/bin/ld.bfd: warning: stub.elf has a LOAD segment with RWX permissions wrap-buddy-1.0.0> objcopy -O binary --only-section=.all stub.elf stub.bin wrap-buddy-1.0.0> xxd -i stub.bin > src/patcher/stub_64.h wrap-buddy-1.0.0> /nix/store/y6ri2r743ckh5kk160r461czl9n2f2wf-binutils-2.46/bin/ld.bfd: warning: stub32.elf has a LOAD segment with RWX permissions wrap-buddy-1.0.0> objcopy -O binary --only-section=.all stub32.elf stub32.bin wrap-buddy-1.0.0> xxd -i stub32.bin > src/patcher/stub_32.h wrap-buddy-1.0.0> /nix/store/r5ri78axx1qggkjq3vawywlzglg70b5w-gcc-wrapper-16.2.0/bin/c++ -std=c++23 -Wall -Wextra -O2 -Iinclude -DHAVE_STUB_32 -DDEFAULT_INTERP='"/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2"' -DDEFAULT_LIBC_LIB='"/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib"' -Isrc/patcher -o wrap-buddy src/patcher/main.cc wrap-buddy-1.0.0> /nix/store/y6ri2r743ckh5kk160r461czl9n2f2wf-binutils-2.46/bin/ld.bfd: warning: loader.elf has a LOAD segment with RWX permissions wrap-buddy-1.0.0> objcopy -O binary --only-section=.all loader.elf loader.bin wrap-buddy-1.0.0> /nix/store/y6ri2r743ckh5kk160r461czl9n2f2wf-binutils-2.46/bin/ld.bfd: warning: loader32.elf has a LOAD segment with RWX permissions wrap-buddy-1.0.0> objcopy -O binary --only-section=.all loader32.elf loader32.bin wrap-buddy-1.0.0> Running phase: installPhase wrap-buddy-1.0.0> install flags: -j24 SHELL=/nix/store/nnm9gdr70ihc6zc9298mzz8jpcgaciql-bash-5.3p20/bin/bash CXX_FOR_BUILD=/nix/store/r5ri78axx1qggkjq3vawywlzglg70b5w-gcc-wrapper-16.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 LIBC_LIB=/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib BUILD_32BIT=1 install wrap-buddy-1.0.0> install -d /nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0/bin wrap-buddy-1.0.0> install -m 755 wrap-buddy /nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0/bin/ wrap-buddy-1.0.0> install -d /nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0/lib/wrap-buddy wrap-buddy-1.0.0> install -m 644 loader.bin stub.bin loader32.bin stub32.bin /nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0/lib/wrap-buddy/ wrap-buddy-1.0.0> Running phase: fixupPhase wrap-buddy-1.0.0> shrinking RPATHs of ELF executables and libraries in /nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0 wrap-buddy-1.0.0> shrinking /nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0/bin/wrap-buddy wrap-buddy-1.0.0> checking for references to /build/ in /nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0... wrap-buddy-1.0.0> patching script interpreter paths in /nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0 wrap-buddy-1.0.0> stripping (with command strip and flags -S -p) in /nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0/lib /nix/store/nbjbvkqac6lq0z0z16i38pm3g0bspb5m-wrap-buddy-1.0.0/bin wrap-buddy-1.0.0> Running phase: installCheckPhase wrap-buddy-1.0.0> installcheck flags: -j24 SHELL=/nix/store/nnm9gdr70ihc6zc9298mzz8jpcgaciql-bash-5.3p20/bin/bash CXX_FOR_BUILD=/nix/store/r5ri78axx1qggkjq3vawywlzglg70b5w-gcc-wrapper-16.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 LIBC_LIB=/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib BUILD_32BIT=1 check wrap-buddy-1.0.0> bash tests/test.sh --interp /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 --libs /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib wrap-buddy-1.0.0> === Test: basic patching === wrap-buddy-1.0.0> Using interpreter: /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 wrap-buddy-1.0.0> 64-bit stub: 407 bytes wrap-buddy-1.0.0> 32-bit stub: 441 bytes wrap-buddy-1.0.0> Patching: /build/tmp.VRzSnPGRly/basic wrap-buddy-1.0.0> ELF class: 64-bit wrap-buddy-1.0.0> Original entry: 0x1140 (file offset: 0x1140) wrap-buddy-1.0.0> Available space at entry: 4345 bytes wrap-buddy-1.0.0> Stub size: 407 bytes (padded to 416) wrap-buddy-1.0.0> Wrote config to /build/tmp.VRzSnPGRly/.basic.wrapbuddy wrap-buddy-1.0.0> Overwrote 416 bytes at entry point wrap-buddy-1.0.0> Converted PT_INTERP to PT_NULL wrap-buddy-1.0.0> Patched: /build/tmp.VRzSnPGRly/basic wrap-buddy-1.0.0> PASS: basic patching wrap-buddy-1.0.0> === Test: --needed injection === wrap-buddy-1.0.0> Using interpreter: /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 wrap-buddy-1.0.0> 64-bit stub: 407 bytes wrap-buddy-1.0.0> 32-bit stub: 441 bytes wrap-buddy-1.0.0> Patching: /build/tmp.VRzSnPGRly/check wrap-buddy-1.0.0> ELF class: 64-bit wrap-buddy-1.0.0> Original entry: 0x10f0 (file offset: 0x10f0) wrap-buddy-1.0.0> Available space at entry: 4345 bytes wrap-buddy-1.0.0> Stub size: 407 bytes (padded to 416) wrap-buddy-1.0.0> Wrote config to /build/tmp.VRzSnPGRly/.check.wrapbuddy wrap-buddy-1.0.0> Overwrote 416 bytes at entry point wrap-buddy-1.0.0> Converted PT_INTERP to PT_NULL wrap-buddy-1.0.0> Patched: /build/tmp.VRzSnPGRly/check wrap-buddy-1.0.0> PASS: --needed injection wrap-buddy-1.0.0> === All tests passed === building '/nix/store/6hgz1r6j0mxc3a936yx6ljgwjhm7yvfy-wrap-buddy-hook.drv' wrap-buddy-hook> tribuchet: building on psi wrap-buddy-hook> structuredAttrs is enabled building '/nix/store/xrkz6x6xzj9yqzqk09qkrlxgcjrkxsyw-claude-code-2.1.308.drv' claude-code-2.1.308> tribuchet: building on psi claude-code-2.1.308> Using versionCheckHook claude-code-2.1.308> Running phase: patchPhase claude-code-2.1.308> Running phase: updateAutotoolsGnuConfigScriptsPhase claude-code-2.1.308> Running phase: configurePhase claude-code-2.1.308> no configure script, doing nothing claude-code-2.1.308> Running phase: buildPhase claude-code-2.1.308> no Makefile or custom buildPhase, doing nothing claude-code-2.1.308> Running phase: installPhase claude-code-2.1.308> Running phase: fixupPhase claude-code-2.1.308> shrinking RPATHs of ELF executables and libraries in /nix/store/756zx9gadjph6dfhbhzl95ap76bk1y9r-claude-code-2.1.308 claude-code-2.1.308> shrinking /nix/store/756zx9gadjph6dfhbhzl95ap76bk1y9r-claude-code-2.1.308/bin/claude claude-code-2.1.308> checking for references to /build/ in /nix/store/756zx9gadjph6dfhbhzl95ap76bk1y9r-claude-code-2.1.308... claude-code-2.1.308> patching script interpreter paths in /nix/store/756zx9gadjph6dfhbhzl95ap76bk1y9r-claude-code-2.1.308 claude-code-2.1.308> wrapBuddy: wrapping paths: /nix/store/756zx9gadjph6dfhbhzl95ap76bk1y9r-claude-code-2.1.308 claude-code-2.1.308> Using interpreter: /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 claude-code-2.1.308> 64-bit stub: 407 bytes claude-code-2.1.308> 32-bit stub: 441 bytes claude-code-2.1.308> Patching: /nix/store/756zx9gadjph6dfhbhzl95ap76bk1y9r-claude-code-2.1.308/bin/.claude-wrapped claude-code-2.1.308> ELF class: 64-bit claude-code-2.1.308> Original entry: 0x1be6900 (file offset: 0x19e5900) claude-code-2.1.308> Available space at entry: 86028144 bytes claude-code-2.1.308> Stub size: 407 bytes (padded to 416) claude-code-2.1.308> Wrote config to /nix/store/756zx9gadjph6dfhbhzl95ap76bk1y9r-claude-code-2.1.308/bin/..claude-wrapped.wrapbuddy claude-code-2.1.308> Overwrote 416 bytes at entry point claude-code-2.1.308> Converted PT_INTERP to PT_NULL claude-code-2.1.308> Patched: /nix/store/756zx9gadjph6dfhbhzl95ap76bk1y9r-claude-code-2.1.308/bin/.claude-wrapped claude-code-2.1.308> Running phase: installCheckPhase claude-code-2.1.308> Executing versionCheckPhase claude-code-2.1.308> Successfully managed to find version 2.1.308 in the output of the command /nix/store/756zx9gadjph6dfhbhzl95ap76bk1y9r-claude-code-2.1.308/bin/claude --version claude-code-2.1.308> 2.1.308 (Claude Code) claude-code-2.1.308> Finished versionCheckPhase claude-code-2.1.308> no Makefile or custom installCheckPhase, doing nothing building '/nix/store/qp8a4xma111adliq6lahcz87c279pxfp-claude.drv' claude> tribuchet: building on psi claude> structuredAttrs is enabled upload niks3: ok