Change:
Steps to reproduce the behavior: kicad (tested on ) The relevant part of the build log is: Complete build log is here: Setting the flag in the cmake build flags, solves the issue. Please run and paste the result.
thanks for filing an issue i'm not sure what changed to cause this issue, or why that change didn't notify me of the breakage... i'll try to get your fix or something similar in a PR today

Discussion:
, libpthreadstubs , libXdmcp , lndir <ins> , unixODBC </ins> , util-linux , libselinux

, at-spi2-core , libXtst <del> , swig </del> <ins> , swig4 </ins> , python , wxPython , opencascade-occt

# tagged releases don't have "unknown" # kicad nightlies use git describe --dirty # nix removes .git, so its approximated here <del> postPatch = '' substituteInPlace CMakeModules/KiCadVersion.cmake  --replace "unknown" "${builtins.substring 0 10 src.rev}"  ''; </del> <ins> postPatch = if (!stable) then '' substituteInPlace cmake/KiCadVersion.cmake  --replace "unknown" "${builtins.substring 0 10 src.rev}" '' else ""; </ins> makeFlags = optionals (debug) [ "CFLAGS+=-Og" "CFLAGS+=-ggdb" ]; cmakeFlags = [ # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/ "-DCMAKE_SKIP_BUILD_RPATH=ON" <ins> "-DKICAD_USE_EGL=ON" </ins> ] ++ optionals (withScripting) [ "-DKICAD_SCRIPTING_WXPYTHON=ON"

curl openssl boost <del> swig </del> <ins> swig4 </ins> python ] <ins> ++ optional (!stable) unixODBC </ins> ++ optional (withScripting) wxPython ++ optional (withNgspice) libngspice ++ optional (withOCC) opencascade-occt ++ optional (debug) valgrind ; <ins> # started becoming necessary halfway into 2022, not sure what changed to break a test... preInstallCheck = optionals (withNgspice) [ "export LD_LIBRARY_PATH=${libngspice}/lib" ]; </ins> # debug builds fail all but the python test # stable release doesn't have the fix for upstream issue 9888 yet doInstallCheck = !debug && !stable;

libs=( symbols templates footprints packages3d ) get_rev() { <del> git ls-remote --tags "$@" </del> <ins> if [[ ${version} == "master" ]]; then git ls-remote --heads "$@" else git ls-remote --tags "$@" fi </ins> } gitlab="https://gitlab.com/kicad"

}; "kicad-unstable" = { kicadVersion = { <del> version =			"2022-06-21"; </del> <ins> version =			"2022-09-18"; </ins> src = { <del> rev =			"b54bb909755d39dcce38ef277c715d7f31ab8e00"; sha256 =		"0nzgrkkvc66hgqdrwfmh5fjw4ffr8gc3bw3n44sa6zjkkz5s6p48"; </del> <ins> rev =			"0efc1149afed2af5b81e4555de4623217ece650f"; sha256 =		"19fqy8yvvl45izg5ynhch9r4gl4ncx0bz9s6n1x98bgzxkdyc14q"; </ins> }; }; libVersion = { <del> version =			"2022-06-21"; </del> <ins> version =			"2022-09-18"; </ins> libSources = { <del> symbols.rev =		"a003b00f6f1056d726e32e911cd65b32946f5503"; symbols.sha256 =	"02z3vqhz1rlf57zi8vyrlxvvdl1hpsh447p41qdgcpn5dyjycb9d"; </del> <ins> symbols.rev =		"879023fba005d23f285b6d052d9e6bcba1d754aa"; symbols.sha256 =	"1nxz8r3h3j62fs3s77lj27333fsj5c4i01n05lv0gqx36h28hqxk"; </ins> templates.rev =		"ae2b46f8756d79379b90fec01d4fdde1ccfd73c1"; templates.sha256 =	"08zxh83fbygh1x2jhca8nrp3f9kihf7kmg65qmyp95wvps4p5h8v"; <del> footprints.rev =	"5df530ec44892407d6382d933ff9ad42dd19df0e"; footprints.sha256 =	"1phynxisha2pq2knbx5l1hkdz1bmjm0qxl3lcb4ab82h8d35r37c"; packages3d.rev =	"6bfd8dfa3adc6ac316b9857977c87f22282c6e24"; packages3d.sha256 =	"0ci9gxbpfnfqwah95ki4qcwlca78s1z6s7hckisnp58a1cm9siya"; </del> <ins> footprints.rev =	"b1dfe894de90b0063befc02b914dc9e2b47e3a62"; footprints.sha256 =	"06kn6c00wlnr33mks582xhadvkbbgmqhb4qc1wjfw264pavz7v7y"; packages3d.rev =	"45df600c5e3dd5113d62e6445115e7c37bdf362f"; packages3d.sha256 =	"0cnrg7mr3khpglviid1adk2ihs1qwj0r7l32z2vqsl8aidzbg9kr"; </ins> }; }; };