This will become a issue when we want to bump the time-machine next, and it’d be nicer if this is fixed and shipped upstream, rather than us having to work around the issue:
0# guix --version
1guix (GNU Guix) 4b9d14378fcc3d8dd4eea36b541fe87e198fd7b8
2
3# guix build --no-substitutes nsis-x86_64
4Source/Plugins.cpp:278:18: required from ‘static void PrintPluginDirsHelper::print(const C&, const char*) [with C = std::map<std::__cxx11::basic_string<wchar_t>, std::__cxx11::basic_string<wchar_t>, STL::string_nocasecmpless<std::__cxx11::basic_string<wchar_t>, wchar_t> >]’
5Source/Plugins.cpp:287:31: required from here
6/gnu/store/mrgjxwdy1l7s9m23bsrshdg3cb2q7nn3-gcc-cross-x86_64-w64-mingw32-14.2.0/include/c++/bits/stl_tree.h:768:15: error: non-constant condition for static assertion
7 768 | is_invocable_v<const _Compare&, const _Key&, const _Key&>,
8 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9scons: *** [build/urelease/makensis/build.o] Error 1
10scons: *** [build/urelease/makensis/Plugins.o] Error 1
11scons: building terminated because of errors.
12error: in phase 'build': uncaught exception:
13%exception #<&invoke-error program: "scons" arguments: ("-j" "16" "UNICODE=yes" "SKIPUTILS=MakeLangId,Makensisw,NSIS Menu,SubStart,zip2exe" "SKIPDOC=COPYING" "STRIP_CP=no" "PREFIX=/gnu/store/z5ng740nbqh0s1n9i69c8wls96drdqy7-nsis-x86_64-3.10" "TARGET_ARCH=amd64" "XGCC_W32_PREFIX=x86_64-w64-mingw32-" "PREFIX_PLUGINAPI_INC=/gnu/store/gwcmzcwbdfcqxiv99xmr2cv9s9nz79bf-mingw-w64-x86_64-winpthreads-12.0.0/include/" "PREFIX_PLUGINAPI_LIB=/gnu/store/gwcmzcwbdfcqxiv99xmr2cv9s9nz79bf-mingw-w64-x86_64-winpthreads-12.0.0/lib/" "makensis" "stubs" "plugins" "utils") exit-status: 2 term-signal: #f stop-signal: #f>
14phase `build' failed after 6.9 seconds
15command "scons" "-j" "16" "UNICODE=yes" "SKIPUTILS=MakeLangId,Makensisw,NSIS Menu,SubStart,zip2exe" "SKIPDOC=COPYING" "STRIP_CP=no" "PREFIX=/gnu/store/z5ng740nbqh0s1n9i69c8wls96drdqy7-nsis-x86_64-3.10" "TARGET_ARCH=amd64" "XGCC_W32_PREFIX=x86_64-w64-mingw32-" "PREFIX_PLUGINAPI_INC=/gnu/store/gwcmzcwbdfcqxiv99xmr2cv9s9nz79bf-mingw-w64-x86_64-winpthreads-12.0.0/include/" "PREFIX_PLUGINAPI_LIB=/gnu/store/gwcmzcwbdfcqxiv99xmr2cv9s9nz79bf-mingw-w64-x86_64-winpthreads-12.0.0/lib/" "makensis" "stubs" "plugins" "utils" failed with status 2
16build process 18 exited with status 256
17builder for `/gnu/store/slxnpxq0d350mbdb0iikgdqxdvr0c6c7-nsis-x86_64-3.10.drv' failed with exit code 1
18build of /gnu/store/slxnpxq0d350mbdb0iikgdqxdvr0c6c7-nsis-x86_64-3.10.drv failed
19View build log at '/var/log/guix/drvs/sl/xnpxq0d350mbdb0iikgdqxdvr0c6c7-nsis-x86_64-3.10.drv.gz'.
20guix build: error: build of `/gnu/store/slxnpxq0d350mbdb0iikgdqxdvr0c6c7-nsis-x86_64-3.10.drv' failed
See also: https://issues.guix.gnu.org/71548. Looks like this is still broken, but differently.