···8484 cmakeFlags = [
8585 "-DWZ_DISTRIBUTOR=NixOS"
8686 # The cmake builder automatically sets CMAKE_INSTALL_BINDIR to an absolute
8787- # path, but this results in an error.
8888- # By resetting it, we let the CMakeLists set it to an accepted value
8989- # based on prefix.
9090- "-DCMAKE_INSTALL_BINDIR="
8787+ # path, but this results in an error:
8888+ #
8989+ # > An absolute CMAKE_INSTALL_BINDIR path cannot be used if the following
9090+ # > are not also absolute paths: WZ_DATADIR
9191+ #
9292+ # WZ_DATADIR is based on CMAKE_INSTALL_DATAROOTDIR, so we set that.
9393+ #
9494+ # Alternatively, we could have set CMAKE_INSTALL_BINDIR to "bin".
9595+ "-DCMAKE_INSTALL_DATAROOTDIR=${placeholder "out"}/share"
9196 ];
92979398 postInstall = lib.optionalString withVideos ''