these 4 derivations will be built: /nix/store/5yva2vwxnwwxdibb1j0x6was9z6nqjsl-wrap-buddy-1.0.0.drv /nix/store/izbhwk7sbhb2p9kjggvhdmw43d3n0409-wrap-buddy-hook.drv /nix/store/54ygbz7ii0isq00b5k5c7bf88pgbxngb-amp-0.0.1790798464-g1c0876.drv /nix/store/a54wbx6bdp5138vxywixrrylfzlr2701-check-amp.drv these 6 paths will be fetched (3.6 MiB download, 13.4 MiB unpacked): /nix/store/s7306mp3pdbw8xx2gicsqvyganjhsywp-elfutils-0.195 /nix/store/n1i9ph766v9kbjs961j2aiw4qaagc1wj-json-c-0.18 /nix/store/vli6118fdbngwy46j1w741ansmrzfszr-ripgrep-15.2.0 /nix/store/jp6mvfsvh6ywhq0adx5w1l13piq5k3bh-strace-7.2 /nix/store/z6y56zx6qcdgcgl9jyhnd1drkmqrangn-tinyxxd-1.3.16 /nix/store/xf8aic178qshq0ahn7x99ffb6ylczisy-xxd-tinyxxd-1.3.16 building '/nix/store/5yva2vwxnwwxdibb1j0x6was9z6nqjsl-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: -j48 SHELL=/nix/store/10dxp0qxqxxsyiljrh2kp0xqhz6arhcx-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/ld-linux-x86-64.so.2 LIBC_LIB=/nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/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/4cfqdmhsbidz8vmfaljcqsfm151r46si-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/4cfqdmhsbidz8vmfaljcqsfm151r46si-wrap-buddy-1.0.0/lib/wrap-buddy/loader32.bin"' -o stub32.elf src/stub/stub.c wrap-buddy-1.0.0> /nix/store/y5sgl0vvrpbcwgjwpjs60r1hg0gi7i0n-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/y5sgl0vvrpbcwgjwpjs60r1hg0gi7i0n-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/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/c++ -std=c++23 -Wall -Wextra -O2 -Iinclude -DHAVE_STUB_32 -DDEFAULT_INTERP='"/nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/ld-linux-x86-64.so.2"' -DDEFAULT_LIBC_LIB='"/nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib"' -Isrc/patcher -o wrap-buddy src/patcher/main.cc wrap-buddy-1.0.0> /nix/store/y5sgl0vvrpbcwgjwpjs60r1hg0gi7i0n-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/y5sgl0vvrpbcwgjwpjs60r1hg0gi7i0n-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: -j48 SHELL=/nix/store/10dxp0qxqxxsyiljrh2kp0xqhz6arhcx-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/ld-linux-x86-64.so.2 LIBC_LIB=/nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib BUILD_32BIT=1 install wrap-buddy-1.0.0> install -d /nix/store/4cfqdmhsbidz8vmfaljcqsfm151r46si-wrap-buddy-1.0.0/bin wrap-buddy-1.0.0> install -m 755 wrap-buddy /nix/store/4cfqdmhsbidz8vmfaljcqsfm151r46si-wrap-buddy-1.0.0/bin/ wrap-buddy-1.0.0> install -d /nix/store/4cfqdmhsbidz8vmfaljcqsfm151r46si-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/4cfqdmhsbidz8vmfaljcqsfm151r46si-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/4cfqdmhsbidz8vmfaljcqsfm151r46si-wrap-buddy-1.0.0 wrap-buddy-1.0.0> shrinking /nix/store/4cfqdmhsbidz8vmfaljcqsfm151r46si-wrap-buddy-1.0.0/bin/wrap-buddy wrap-buddy-1.0.0> checking for references to /build/ in /nix/store/4cfqdmhsbidz8vmfaljcqsfm151r46si-wrap-buddy-1.0.0... wrap-buddy-1.0.0> patching script interpreter paths in /nix/store/4cfqdmhsbidz8vmfaljcqsfm151r46si-wrap-buddy-1.0.0 wrap-buddy-1.0.0> stripping (with command strip and flags -S -p) in /nix/store/4cfqdmhsbidz8vmfaljcqsfm151r46si-wrap-buddy-1.0.0/lib /nix/store/4cfqdmhsbidz8vmfaljcqsfm151r46si-wrap-buddy-1.0.0/bin wrap-buddy-1.0.0> Running phase: installCheckPhase wrap-buddy-1.0.0> installcheck flags: -j48 SHELL=/nix/store/10dxp0qxqxxsyiljrh2kp0xqhz6arhcx-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/j1938gsbvbhkyz4kbmvjk56r479mkw3s-gcc-wrapper-16.2.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/ld-linux-x86-64.so.2 LIBC_LIB=/nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib BUILD_32BIT=1 check wrap-buddy-1.0.0> bash tests/test.sh --interp /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/ld-linux-x86-64.so.2 --libs /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib wrap-buddy-1.0.0> === Test: basic patching === wrap-buddy-1.0.0> Using interpreter: /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/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.4UogUcZxU4/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.4UogUcZxU4/.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.4UogUcZxU4/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/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/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.4UogUcZxU4/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.4UogUcZxU4/.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.4UogUcZxU4/check wrap-buddy-1.0.0> PASS: --needed injection wrap-buddy-1.0.0> === All tests passed === building '/nix/store/izbhwk7sbhb2p9kjggvhdmw43d3n0409-wrap-buddy-hook.drv' wrap-buddy-hook> structuredAttrs is enabled building '/nix/store/54ygbz7ii0isq00b5k5c7bf88pgbxngb-amp-0.0.1790798464-g1c0876.drv' amp-0.0.1790798464-g1c0876> Using versionCheckHook amp-0.0.1790798464-g1c0876> Running phase: patchPhase amp-0.0.1790798464-g1c0876> Running phase: updateAutotoolsGnuConfigScriptsPhase amp-0.0.1790798464-g1c0876> Running phase: configurePhase amp-0.0.1790798464-g1c0876> no configure script, doing nothing amp-0.0.1790798464-g1c0876> Running phase: buildPhase amp-0.0.1790798464-g1c0876> no Makefile or custom buildPhase, doing nothing amp-0.0.1790798464-g1c0876> Running phase: installPhase amp-0.0.1790798464-g1c0876> Running phase: fixupPhase amp-0.0.1790798464-g1c0876> shrinking RPATHs of ELF executables and libraries in /nix/store/j0n2bdm47f81nihrzc2i11b090dvwbhl-amp-0.0.1790798464-g1c0876 amp-0.0.1790798464-g1c0876> shrinking /nix/store/j0n2bdm47f81nihrzc2i11b090dvwbhl-amp-0.0.1790798464-g1c0876/bin/amp amp-0.0.1790798464-g1c0876> checking for references to /build/ in /nix/store/j0n2bdm47f81nihrzc2i11b090dvwbhl-amp-0.0.1790798464-g1c0876... amp-0.0.1790798464-g1c0876> patching script interpreter paths in /nix/store/j0n2bdm47f81nihrzc2i11b090dvwbhl-amp-0.0.1790798464-g1c0876 amp-0.0.1790798464-g1c0876> wrapBuddy: wrapping paths: /nix/store/j0n2bdm47f81nihrzc2i11b090dvwbhl-amp-0.0.1790798464-g1c0876 amp-0.0.1790798464-g1c0876> Using interpreter: /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/ld-linux-x86-64.so.2 amp-0.0.1790798464-g1c0876> 64-bit stub: 407 bytes amp-0.0.1790798464-g1c0876> 32-bit stub: 441 bytes amp-0.0.1790798464-g1c0876> Patching: /nix/store/j0n2bdm47f81nihrzc2i11b090dvwbhl-amp-0.0.1790798464-g1c0876/bin/.amp-wrapped amp-0.0.1790798464-g1c0876> ELF class: 64-bit amp-0.0.1790798464-g1c0876> Original entry: 0x177a400 (file offset: 0x1572400) amp-0.0.1790798464-g1c0876> Available space at entry: 56903536 bytes amp-0.0.1790798464-g1c0876> Stub size: 407 bytes (padded to 416) amp-0.0.1790798464-g1c0876> Wrote config to /nix/store/j0n2bdm47f81nihrzc2i11b090dvwbhl-amp-0.0.1790798464-g1c0876/bin/..amp-wrapped.wrapbuddy amp-0.0.1790798464-g1c0876> Overwrote 416 bytes at entry point amp-0.0.1790798464-g1c0876> Converted PT_INTERP to PT_NULL amp-0.0.1790798464-g1c0876> Patched: /nix/store/j0n2bdm47f81nihrzc2i11b090dvwbhl-amp-0.0.1790798464-g1c0876/bin/.amp-wrapped amp-0.0.1790798464-g1c0876> Running phase: installCheckPhase amp-0.0.1790798464-g1c0876> Executing versionCheckPhase amp-0.0.1790798464-g1c0876> Successfully managed to find version 0.0.1790798464-g1c0876 in the output of the command /nix/store/j0n2bdm47f81nihrzc2i11b090dvwbhl-amp-0.0.1790798464-g1c0876/bin/amp --version amp-0.0.1790798464-g1c0876> 0.0.1790798464-g1c0876 (released 2026-09-30T20:01:04.000Z, 6h ago) amp-0.0.1790798464-g1c0876> Finished versionCheckPhase amp-0.0.1790798464-g1c0876> no Makefile or custom installCheckPhase, doing nothing building '/nix/store/a54wbx6bdp5138vxywixrrylfzlr2701-check-amp.drv' upload niks3: ok