these 4 derivations will be built: /nix/store/lgkv5zlih7p7558fvr1pcl4s91pznxx1-wrap-buddy-1.0.0.drv /nix/store/v8988gp09q9472cfck6qfyalw0dd8w49-wrap-buddy-hook.drv /nix/store/94zdqz51jg2z13vmx8w63gknr6x7gv1n-amp-0.0.1792454470-g0a5798.drv /nix/store/0jg9a1db4av6ad1bkimxnn01ci1s6yd5-check-amp.drv these 4 paths will be fetched (2.7 MiB download, 9.0 MiB unpacked): /nix/store/dzb4833vd9agd5gc015kmfy3pkzm9bwa-ripgrep-15.2.0 /nix/store/78jn0lxqjgz4ahjzvvh4rvan7p607xph-strace-7.2 /nix/store/a9i0dyghvdasdjz21hhgl0z990057qx9-tinyxxd-1.3.17 /nix/store/rrbkzimzjscks8wpdm5m1pyrg544ixc9-xxd-tinyxxd-1.3.17 building '/nix/store/lgkv5zlih7p7558fvr1pcl4s91pznxx1-wrap-buddy-1.0.0.drv' 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: -j8 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/v5qfkdydpm2l54fac9d0lif3na7im2zs-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/v5qfkdydpm2l54fac9d0lif3na7im2zs-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> /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 stub.bin > src/patcher/stub_64.h 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: 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> /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> Running phase: installPhase wrap-buddy-1.0.0> install flags: -j8 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/v5qfkdydpm2l54fac9d0lif3na7im2zs-wrap-buddy-1.0.0/bin wrap-buddy-1.0.0> install -m 755 wrap-buddy /nix/store/v5qfkdydpm2l54fac9d0lif3na7im2zs-wrap-buddy-1.0.0/bin/ wrap-buddy-1.0.0> install -d /nix/store/v5qfkdydpm2l54fac9d0lif3na7im2zs-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/v5qfkdydpm2l54fac9d0lif3na7im2zs-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/v5qfkdydpm2l54fac9d0lif3na7im2zs-wrap-buddy-1.0.0 wrap-buddy-1.0.0> shrinking /nix/store/v5qfkdydpm2l54fac9d0lif3na7im2zs-wrap-buddy-1.0.0/bin/wrap-buddy wrap-buddy-1.0.0> checking for references to /build/ in /nix/store/v5qfkdydpm2l54fac9d0lif3na7im2zs-wrap-buddy-1.0.0... wrap-buddy-1.0.0> patching script interpreter paths in /nix/store/v5qfkdydpm2l54fac9d0lif3na7im2zs-wrap-buddy-1.0.0 wrap-buddy-1.0.0> stripping (with command strip and flags -S -p) in /nix/store/v5qfkdydpm2l54fac9d0lif3na7im2zs-wrap-buddy-1.0.0/lib /nix/store/v5qfkdydpm2l54fac9d0lif3na7im2zs-wrap-buddy-1.0.0/bin wrap-buddy-1.0.0> Running phase: installCheckPhase wrap-buddy-1.0.0> installcheck flags: -j8 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.XksKbCTNnW/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.XksKbCTNnW/.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.XksKbCTNnW/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.XksKbCTNnW/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.XksKbCTNnW/.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.XksKbCTNnW/check wrap-buddy-1.0.0> PASS: --needed injection wrap-buddy-1.0.0> === All tests passed === building '/nix/store/v8988gp09q9472cfck6qfyalw0dd8w49-wrap-buddy-hook.drv' wrap-buddy-hook> structuredAttrs is enabled building '/nix/store/94zdqz51jg2z13vmx8w63gknr6x7gv1n-amp-0.0.1792454470-g0a5798.drv' amp-0.0.1792454470-g0a5798> Using versionCheckHook amp-0.0.1792454470-g0a5798> Running phase: patchPhase amp-0.0.1792454470-g0a5798> Running phase: updateAutotoolsGnuConfigScriptsPhase amp-0.0.1792454470-g0a5798> Running phase: configurePhase amp-0.0.1792454470-g0a5798> no configure script, doing nothing amp-0.0.1792454470-g0a5798> Running phase: buildPhase amp-0.0.1792454470-g0a5798> no Makefile or custom buildPhase, doing nothing amp-0.0.1792454470-g0a5798> Running phase: installPhase amp-0.0.1792454470-g0a5798> Running phase: fixupPhase amp-0.0.1792454470-g0a5798> shrinking RPATHs of ELF executables and libraries in /nix/store/mvhifvx2g4lyfcyympi12mf4sn4kc5ns-amp-0.0.1792454470-g0a5798 amp-0.0.1792454470-g0a5798> shrinking /nix/store/mvhifvx2g4lyfcyympi12mf4sn4kc5ns-amp-0.0.1792454470-g0a5798/bin/amp amp-0.0.1792454470-g0a5798> checking for references to /build/ in /nix/store/mvhifvx2g4lyfcyympi12mf4sn4kc5ns-amp-0.0.1792454470-g0a5798... amp-0.0.1792454470-g0a5798> patching script interpreter paths in /nix/store/mvhifvx2g4lyfcyympi12mf4sn4kc5ns-amp-0.0.1792454470-g0a5798 amp-0.0.1792454470-g0a5798> wrapBuddy: wrapping paths: /nix/store/mvhifvx2g4lyfcyympi12mf4sn4kc5ns-amp-0.0.1792454470-g0a5798 amp-0.0.1792454470-g0a5798> Using interpreter: /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 amp-0.0.1792454470-g0a5798> 64-bit stub: 407 bytes amp-0.0.1792454470-g0a5798> 32-bit stub: 441 bytes amp-0.0.1792454470-g0a5798> Patching: /nix/store/mvhifvx2g4lyfcyympi12mf4sn4kc5ns-amp-0.0.1792454470-g0a5798/bin/.amp-wrapped amp-0.0.1792454470-g0a5798> ELF class: 64-bit amp-0.0.1792454470-g0a5798> Original entry: 0x177a400 (file offset: 0x1572400) amp-0.0.1792454470-g0a5798> Available space at entry: 56903536 bytes amp-0.0.1792454470-g0a5798> Stub size: 407 bytes (padded to 416) amp-0.0.1792454470-g0a5798> Wrote config to /nix/store/mvhifvx2g4lyfcyympi12mf4sn4kc5ns-amp-0.0.1792454470-g0a5798/bin/..amp-wrapped.wrapbuddy amp-0.0.1792454470-g0a5798> Overwrote 416 bytes at entry point amp-0.0.1792454470-g0a5798> Converted PT_INTERP to PT_NULL amp-0.0.1792454470-g0a5798> Patched: /nix/store/mvhifvx2g4lyfcyympi12mf4sn4kc5ns-amp-0.0.1792454470-g0a5798/bin/.amp-wrapped amp-0.0.1792454470-g0a5798> Running phase: installCheckPhase amp-0.0.1792454470-g0a5798> Executing versionCheckPhase amp-0.0.1792454470-g0a5798> Successfully managed to find version 0.0.1792454470-g0a5798 in the output of the command /nix/store/mvhifvx2g4lyfcyympi12mf4sn4kc5ns-amp-0.0.1792454470-g0a5798/bin/amp --version amp-0.0.1792454470-g0a5798> 0.0.1792454470-g0a5798 (released 2026-10-20T00:01:10.000Z, 4h ago) amp-0.0.1792454470-g0a5798> Finished versionCheckPhase amp-0.0.1792454470-g0a5798> no Makefile or custom installCheckPhase, doing nothing building '/nix/store/0jg9a1db4av6ad1bkimxnn01ci1s6yd5-check-amp.drv' upload niks3: ok