Build keeps failing

Hi all, when trying to rebuild, I get the following error, can anyone please help?

/nix/store/1fqpl0cxpjppvqk6i40imkrl5hr2awka-steam-run-1.0.0.85-fhsenv-rootfs.drv /nix/store/2jy8m5xz6vzpcpq77d59q3qp7l3f52iz-veracrypt-1.26.24.drv /nix/store/d8nmcnbhcr6sdw4s0s64b13wbcfsc4hw-libvlc-3.0.23-2.drv /nix/store/2wvkparwildkqf79x4bqvjqxs5gk7m3q-elisa-25.12.2.drv /nix/store/da406yq1dci8lshmli5daiiwnam3iw4p-steam-1.0.0.85-fhsenv-rootfs.drv /nix/store/q6v3zc4cqxqazl09yvwkr6hz6h3mb9hi-steam-1.0.0.85-bwrap.drv /nix/store/c1hspdb84wjsvsac0j941j83givmmw79-steam-1.0.0.85.drv /nix/store/f0lr6kjqggdpqn0ckf2pmf3f929l3kv4-steam-run-1.0.0.85-bwrap.drv /nix/store/ck61n2lrnb717lp09cn8hr0gai5yl23n-steam-run-1.0.0.85.drv /nix/store/lc19s1hy663bjy438fp5krh3dwxak7kv-vlc-3.0.23-2.drv /nix/store/n28yrzv7qqkxxnj5ingsnzwhhdif5727-phonon-vlc-0.12.0.drv /nix/store/nkf65g1c74svhrz0ylk9s1ydabm0kklv-makemkv-1.18.3.drv /nix/store/ds91lr3lpnh06sws6kijksbxi4i68csc-obs-studio-32.0.4.drv /nix/store/xcvg0wb03rjkjvv5yq5mpfkigw35i83h-wrapped-obs-studio-32.0.4.drv /nix/store/j9dcmxcynw28gn3x7lylz73svibzhcpy-system-path.drv /nix/store/71ckf1p9azfi1r2i433gl8vdrdv53sqq-dbus-1.drv /nix/store/dv48sx9gf0azb2f2gs4f6apj1qi5pm2s-X-Restart-Triggers-polkit.drv /nix/store/8dgcg18rkx7m4ffa17m7fmgbzxkrm1ra-unit-polkit.service.drv /nix/store/d0iclyzjiwnqc4p7iw024fv5m4ji30r9-X-Restart-Triggers-dbus.drv /nix/store/8sxy0hfqsjgzfhbd4n963q4rppbp9kk5-unit-dbus.service.drv /nix/store/m0sds256kfs0a4wklxbn56saxvny5sm7-unit-accounts-daemon.service.drv /nix/store/jnqp574bsbki4xmxmca1ydwd1ha2wb7m-system-units.drv /nix/store/pcgfpkh3mhxl63kzz9q24ph046zxmry8-unit-dbus.service.drv /nix/store/w2l4kwdwasds1xvbk6iaisdhzc8lpb0k-user-units.drv /nix/store/58s7fv6zv32fb2jbr0114n1xns7bhis4-etc.drv /nix/store/8y4hia8pdz627lzz9dyvj9g67wv1c6yg-activate.drv /nix/store/wmvq9ndq0sijjadalq2jz2hsi2pz49wl-nixos-system-nixos-26.05pre953160.2fc6539b481e.drvbuilding ā€˜/nix/store/nkf65g1c74svhrz0ylk9s1ydabm0kklv-makemkv-1.18.3.drv’… building ā€˜/nix/store/2jy8m5xz6vzpcpq77d59q3qp7l3f52iz-veracrypt-1.26.24.drv’… building ā€˜/nix/store/lc19s1hy663bjy438fp5krh3dwxak7kv-vlc-3.0.23-2.drv’… building ā€˜/nix/store/d8nmcnbhcr6sdw4s0s64b13wbcfsc4hw-libvlc-3.0.23-2.drv’… building ā€˜/nix/store/da406yq1dci8lshmli5daiiwnam3iw4p-steam-1.0.0.85-fhsenv-rootfs.drv’… building ā€˜/nix/store/1fqpl0cxpjppvqk6i40imkrl5hr2awka-steam-run-1.0.0.85-fhsenv-rootfs.drv’… Running phase: qtPreHook Running phase: unpackPhase unpacking source archive /nix/store/nlcw2z89kqwa7b8qpskmhc7j4d6lpk6k-makemkv-bin-1.18.3.tar.gz unpacking source archive /nix/store/c7q733ylqscljfqaqycscg000jbhl3b5-makemkv-oss-1.18.3.tar.gz source root is makemkv-oss-1.18.3 setting SOURCE_DATE_EPOCH to timestamp 1769206018 of file ā€œmakemkv-oss-1.18.3/configureā€ Running phase: patchPhase applying patch /nix/store/i6visjm4fvzr8pdks123h22r68pda59q-r13y.patch patching file Makefile.in Running phase: updateAutotoolsGnuConfigScriptsPhase Updating Autotools / GNU config script to a newer upstream version: ./autoxxx/config.sub Updating Autotools / GNU config script to a newer upstream version: ./autoxxx/config.guess Running phase: configurePhase fixing libtool script ./autoxxx/ltmain.sh ./configure patching script interpreter paths in ./configure ./configure: interpreter directive changed from ā€œ#! /bin/shā€ to ā€œ/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin/shā€ configure flags: --disable-static --prefix=/nix/store/pbrw1mshxwnzzgqg5wmawn33671qa726-makemkv-1.18.3 checking build system type… x86_64-pc-linux-gnu checking host system type… x86_64-pc-linux-gnu checking target system type… x86_64-pc-linux-gnu checking how to print strings… printf checking for gcc… gcc Running phase: unpackPhase unpacking source archive /nix/store/0yxbdwpsa8z44gif586cf58jpvbcr6zf-VeraCrypt_1.26.24_Source.tar.bz2 Using udevCheckHook Using udevCheckHook structuredAttrs is enabled structuredAttrs is enabled Running phase: unpackPhase unpacking source archive /nix/store/3dl12i9vx5jrbd4hbz5pc8jlsajz49ai-source checking whether the C compiler works… yes checking for C compiler default output file name… a.out Running phase: qtPreHook Running phase: unpackPhase unpacking source archive /nix/store/3dl12i9vx5jrbd4hbz5pc8jlsajz49ai-source source root is source Running phase: patchPhase applying patch /nix/store/yckanhib69vk0sm9jq6jl0l33n5r0m9x-0001-Add-lssl-and-lcrypto-to-liblive555_plugin_la_LIBADD.patch patching file modules/access/Makefile.am Hunk #1 succeeded at 318 with fuzz 2 (offset -16 lines). applying patch /nix/store/w4k50qdf02hxgkfdlkdz1sqdbwmvs59b-deterministic-plugin-cache.diff patching file src/modules/bank.c substituteStream() in derivation libvlc-3.0.23-2: WARNING: ā€˜ā€“replace’ is deprecated, use --replace-{fail,warn,quiet}. (file ā€˜modules/text_renderer/freetype/platform_fonts.h’) Running phase: autoreconfPhase source root is source autoreconf: export WARNINGS= autoreconf: Entering directory ā€˜.’ autoreconf: running: autopoint --force Running phase: patchPhase applying patch /nix/store/yckanhib69vk0sm9jq6jl0l33n5r0m9x-0001-Add-lssl-and-lcrypto-to-liblive555_plugin_la_LIBADD.patch patching file modules/access/Makefile.am Hunk #1 succeeded at 318 with fuzz 2 (offset -16 lines). applying patch /nix/store/w4k50qdf02hxgkfdlkdz1sqdbwmvs59b-deterministic-plugin-cache.diff patching file src/modules/bank.c substituteStream() in derivation vlc-3.0.23-2: WARNING: ā€˜ā€“replace’ is deprecated, use --replace-{fail,warn,quiet}. (file ā€˜modules/text_renderer/freetype/platform_fonts.h’) Running phase: autoreconfPhase autoreconf: export WARNINGS= autoreconf: Entering directory ā€˜.’ autoreconf: running: autopoint --force checking for suffix of executables… checking whether we are cross compiling… no checking for suffix of object files… o checking whether the compiler supports GNU C… yes checking whether gcc accepts -g… yes checking for gcc option to enable C11 features… none needed checking for a sed that does not truncate output… /nix/store/wv7qq5yb8plyhxji9x3r5gpkyfm2kf29-gnused-4.9/bin/sed checking for grep that handles long lines and -e… /nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin/grep checking for egrep… /nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin/grep -E checking for fgrep… /nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin/grep -F checking for ld used by gcc… ld Copying file ABOUT-NLS Copying file m4/extern-inline.m4 Copying file ABOUT-NLS checking if the linker (ld) is GNU ld… yes checking for BSD- or MS-compatible name lister (nm)… nm checking the name lister (nm) interface… BSD nm checking whether ln -s works… yes checking the maximum length of command line arguments… 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format… func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format… func_convert_file_noop checking for ld option to reload object files… -r checking for file… file checking for objdump… objdump checking how to recognize dependent libraries… (cached) pass_all checking for dlltool… no checking how to associate runtime and link libraries… printf %s\n checking for archiver @FILE support… @ checking for strip… strip checking for ranlib… ranlib checking for gawk… gawk Copying file m4/extern-inline.m4 Copying file po/Makevars.template Copying file po/Rules-quot Copying file po/boldquot.sed Copying file po/en@boldquot.header Copying file po/en@quot.header Copying file po/insert-header.sin Copying file po/quot.sed Copying file po/remove-potcdate.sin Copying file po/Makevars.template Copying file po/Rules-quot Copying file po/boldquot.sed Copying file po/en@boldquot.header Copying file po/en@quot.header Copying file po/insert-header.sin Copying file po/quot.sed Copying file po/remove-potcdate.sin checking command to parse nm output from gcc object… ok checking for sysroot… no checking for a working dd… /nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin/dd checking how to truncate binary pipes… /nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin/dd bs=4096 count=1 source root is src checking for mt… no checking if : is a manifest tool… no setting SOURCE_DATE_EPOCH to timestamp 1748656091 of file ā€œsrc/Volume/VolumeSlot.hā€ Running phase: patchPhase applying patch /nix/store/q6qd90pr8h1bi3lmqbvga9386qrib60w-fix-paths.patch patching file Core/VolumeCreator.h Hunk #1 succeeded at 78 (offset 1 line). applying patch /nix/store/p2jdxjv8xygdgnkldb3jva18719ialsg-nix-system-paths.patch patching file Platform/Unix/Process.cpp Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase checking for stdio.h… yes no configure script, doing nothing Running phase: buildPhase build flags: -j8 SHELL=/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin/bash checking for stdlib.h… yes checking for string.h… yes checking for inttypes.h… yes checking for stdint.h… yes Compiling Buffer.cpp Compiling Exception.cpp Compiling Event.cpp Compiling FileCommon.cpp Compiling MemoryStream.cpp Compiling Memory.cpp Compiling PlatformTest.cpp Compiling Serializable.cpp checking for strings.h… yes checking for sys/stat.h… yes checking for sys/types.h… yes checking for unistd.h… yes Compiling Serializer.cpp checking for dlfcn.h… yes checking for objdir… .libs Compiling SerializerFactory.cpp autoreconf: running: aclocal --force -I m4 Compiling StringConverter.cpp Compiling TextReader.cpp Compiling Directory.cpp autoreconf: running: aclocal --force -I m4 Compiling File.cpp checking if gcc supports -fno-rtti -fno-exceptions… no checking for gcc option to produce PIC… -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works… yes Compiling FilesystemPath.cpp Compiling Mutex.cpp Compiling Pipe.cpp Compiling Poller.cpp Compiling Process.cpp checking if gcc static flag -static works… no Compiling SyncEvent.cpp checking if gcc supports -c -o file.o… yes checking if gcc supports -c -o file.o… (cached) yes Compiling SystemException.cpp Compiling SystemInfo.cpp Compiling SystemLog.cpp autoreconf: configure.ac: tracing Compiling Thread.cpp Compiling Time.cpp autoreconf: configure.ac: tracing Updating library Platform.a Compiling Cipher.cpp Compiling EncryptionAlgorithm.cpp Compiling EncryptionMode.cpp Compiling EncryptionThreadPool.cpp Compiling EncryptionTest.cpp Compiling Hash.cpp Compiling Keyfile.cpp Compiling Pkcs5Kdf.cpp checking whether the gcc linker (ld -m elf_x86_64) supports shared libraries… yes autoreconf: running: libtoolize --copy --force autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, ā€˜autotools’. libtoolize: copying file ā€˜autotools/ltmain.sh’ libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, ā€˜autotools’. libtoolize: copying file ā€˜autotools/ltmain.sh’ libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, ā€˜m4’. libtoolize: copying file ā€˜m4/libtool.m4’ libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, ā€˜m4’. libtoolize: copying file ā€˜m4/libtool.m4’ libtoolize: copying file ā€˜m4/ltoptions.m4’ libtoolize: copying file ā€˜m4/ltoptions.m4’ libtoolize: copying file ā€˜m4/ltsugar.m4’ libtoolize: copying file ā€˜m4/ltsugar.m4’ libtoolize: copying file ā€˜m4/ltversion.m4’ libtoolize: copying file ā€˜m4/ltversion.m4’ libtoolize: copying file ā€˜m4/lt~obsolete.m4’ libtoolize: copying file ā€˜m4/lt~obsolete.m4’ checking whether -lc should be explicitly linked in… no autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal --force -I m4 Compiling Volume.cpp autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal --force -I m4 Compiling VolumeException.cpp checking dynamic linker characteristics… GNU/Linux ld.so checking how to hardcode library paths into programs… immediate checking whether stripping libraries is possible… yes checking if libtool supports shared libraries… yes checking whether to build shared libraries… yes checking whether to build static libraries… no checking for gcc… (cached) gcc checking whether the compiler supports GNU C… (cached) yes checking whether gcc accepts -g… (cached) yes checking for gcc option to enable C11 features… (cached) none needed Compiling VolumeHeader.cpp checking whether the compiler supports GNU C++… yes checking whether g++ accepts -g… yes Compiling VolumeInfo.cpp checking for g++ option to enable C++11 features… none needed Compiling VolumeLayout.cpp checking how to run the C++ preprocessor… g++ -E Compiling VolumePassword.cpp Compiling VolumePasswordCache.cpp autoreconf: running: /nix/store/a2yh1crilf3p3vm6485nzr2xg5c9pfzc-autoconf-2.72/bin/autoconf --force checking for ld used by g++… ld -m elf_x86_64 Compiling EncryptionModeXTS.cpp autoreconf: running: /nix/store/a2yh1crilf3p3vm6485nzr2xg5c9pfzc-autoconf-2.72/bin/autoconf --force checking if the linker (ld -m elf_x86_64) is GNU ld… yes Assembling Aes_x64.asm Assembling Aes_hw_cpu.asm Compiling Twofish_x64.S Compiling Camellia_x64.S checking whether the g++ linker (ld -m elf_x86_64) supports shared libraries… yes Compiling Camellia_aesni_x64.S Compiling sha512-x64-nayuki.S /nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin/grep: warning: stray \ before - Assembling sha256_avx1_x64.asm Assembling sha256_avx2_x64.asm Assembling sha256_sse4_x64.asm Assembling sha512_avx1_x64.asm Assembling sha512_avx2_x64.asm Assembling sha512_sse4_x64.asm Compiling Aeskey.c Compiling Aestab.c Compiling blake2s.c Compiling blake2s_SSE2.c Compiling SerpentFast.c Compiling SerpentFast_simd.cpp Compiling Sha2.c autoreconf: running: /nix/store/a2yh1crilf3p3vm6485nzr2xg5c9pfzc-autoconf-2.72/bin/autoheader --force Compiling Twofish.c autoreconf: running: /nix/store/a2yh1crilf3p3vm6485nzr2xg5c9pfzc-autoconf-2.72/bin/autoheader --force Compiling Whirlpool.c Compiling Camellia.c Compiling Streebog.c Compiling kuznyechik.c Compiling kuznyechik_simd.c Compiling Pkcs5.c autoreconf: running: automake --add-missing --copy --force-missing Compiling cpu.c checking for g++ option to produce PIC… -fPIC -DPIC autoreconf: running: automake --add-missing --copy --force-missing checking if g++ PIC flag -fPIC -DPIC works… yes Compiling CommandAPDU.cpp Compiling PCSCException.cpp configure.ac:46: installing ā€˜autotools/compile’ configure.ac:23: installing ā€˜autotools/config.guess’ configure.ac:23: installing ā€˜autotools/config.sub’ configure.ac:27: installing ā€˜autotools/install-sh’ configure.ac:27: installing ā€˜autotools/missing’ Compiling ResponseAPDU.cpp Compiling SCard.cpp parallel-tests: installing ā€˜autotools/test-driver’ Compiling SCardLoader.cpp Compiling SCardManager.cpp bin/Makefile.am: installing ā€˜autotools/depcomp’ configure.ac:46: installing ā€˜autotools/compile’ configure.ac:23: installing ā€˜autotools/config.guess’ configure.ac:23: installing ā€˜autotools/config.sub’ configure.ac:27: installing ā€˜autotools/install-sh’ configure.ac:27: installing ā€˜autotools/missing’ parallel-tests: installing ā€˜autotools/test-driver’ bin/Makefile.am: installing ā€˜autotools/depcomp’ checking if g++ static flag -static works… no checking if g++ supports -c -o file.o… yes checking if g++ supports -c -o file.o… (cached) yes checking whether the g++ linker (ld -m elf_x86_64) supports shared libraries… yes checking dynamic linker characteristics… (cached) GNU/Linux ld.so checking how to hardcode library paths into programs… immediate checking for -objcopy… objcopy checking for -ld… ld -m elf_x86_64 Compiling SCardReader.cpp checking for a BSD-compatible install… /nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin/install -c Compiling Token.cpp Compiling Crc.c checking whether g++ supports C++11 features with -std=c++11… yes checking for zlib.h… yes Compiling TLVParser.cpp Compiling EMVCard.cpp Compiling EMVToken.cpp Compiling Endian.c Compiling GfMul.c Compiling SecurityToken.cpp Compiling jitterentropy-base.c In file included from /nix/store/j8irrc0mpx029dw0rmadsjylg7h31ync-glibc-2.42-51-dev/include/bits/libc-header-start.h:33, from/nix/store/j8irrc0mpx029dw0rmadsjylg7h31ync-glibc-2.42-51-dev/include/stdint.h:26, from/nix/store/sca0pf46jmxva40qahkcwys5c1lvk6n2-gcc-15.2.0/lib/gcc/x86_64-unknown-linux-gnu/15.2.0/include/stdint.h:11, from../Crypto/jitterentropy-base.c:58: /nix/store/j8irrc0mpx029dw0rmadsjylg7h31ync-glibc-2.42-51-dev/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning_FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ Compiling Sha2Intel.c checking for compress2 in -lz… yes checking for openssl/opensslconf.h… yes Compiling blake2s_SSE41.c Compiling blake2s_SSSE3.c configure.ac: installing ā€˜autotools/ylwrap’ checking for AES_encrypt in -lcrypto… yes configure.ac: installing ā€˜autotools/ylwrap’ checking for expat.h… no configure: error: in `/build/makemkv-oss-1.18.3’: configure: error: expat library header files not found See `config.log’ for more details error: Cannot build ā€˜/nix/store/nkf65g1c74svhrz0ylk9s1ydabm0kklv-makemkv-1.18.3.drv’. Reason:builder failed with exit code 1. Output paths: /nix/store/pbrw1mshxwnzzgqg5wmawn33671qa726-makemkv-1.18.3 error: Cannot build ā€˜/nix/store/j9dcmxcynw28gn3x7lylz73svibzhcpy-system-path.drv’. Reason:1 dependency failed. Output paths: /nix/store/xgr9ryxq1addr9azr00h16kjs0v5h9yv-system-path error: Cannot build ā€˜/nix/store/wmvq9ndq0sijjadalq2jz2hsi2pz49wl-nixos-system-nixos-26.05pre953160.2fc6539b481e.drv’. Reason:1 dependency failed. Output paths: /nix/store/45v4i22jz94xwf9l7iiv7wfj5xiva6xy-nixos-system-nixos-26.05pre953160.2fc6539b481e Command ā€˜nix-build ā€˜<nixpkgs/nixos>’ --attr config.system.build.toplevel --no-out-link’ returned non-zero exitstatus 100.

You need to wait for that PR to land

Or patch your nixpkgs accordingly or override the build input similar until that change lands on the channel.

See Nixpkgs-tracker for the progress thru the channels.

1 Like

That’s great, thank you. I couldn’t find any mention of the package being broken on the forum, I just kept finding posts from 2025. I’ll wait until the PR gets pushed as I have no idea how to override the build.
Thank you so much for your help

Somewhere on the dependency chain ā€œmakemkv" was mentioned with a missing extpat and as it broke my system flake yesterday as well, I did not even need to search for it :sweat_smile:

If you like to dig into patching nixpkgs, that wiki article could be a good starting point Nixpkgs/Patching Nixpkgs - Official NixOS Wiki