Done with the help of https://github.com/Mindavi/nixpkgs-mark-broken
Tool is still WIP but this is one of the first results.
I manually audited the results and removed some results that were not valid.
Note that some of these packages maybe should have more constrained platforms set
instead of broken set, but I think not being perfectly correct is better than
just keep trying to build all these things and never succeeding.
Some observations:
- Some darwin builds require XCode tools
- aarch64-linux builds sometimes suffer from using gcc9
- gcc9 is getting older and misses some new libraries/features
- Sometimes tools try to do system detection or expect some explicit settings for
platforms that are not x86_64-linux
3.11 now attempts to run host platform binaries at build time by default.
Fortunately, this can be easily disabled. These binaries test certain compiler
behaviors and are for informational purposes only. Apparently, they cause
problems with GCC 12 as well and therefore will likely be disabled by default
in the next release.
Update cutensor to the latest version compatible with its only dependent
in nixpkgs, cupy. Future work might wish to make multiple versions
available. Also update the URL format for all known versions.
Throw an error if the default version of tensorrt does not support the
cuda version.
Adding cudatoolkit 11.8 fails to evaluate
tensorrt.{tensorRTDefaultVersion} as "11.8" is not listed on any
supportedCudaVersions of any tensorRTVersions attributes.
When passed a CUDA version not in the table of default TensorRT versions for
CUDA versions, fall back to a default package version instead of breaking
evaluation of the package.
When passed a CUDA version not in the table of default cuDNN versions for CUDA
versions, fall back to a default package version instead of breaking evaluation
of the package.
The package was introduced when our source package did not expose
libtensorflow, which it does these days. Additionally the -bin package
has not been well maintained and is stuck on a version from 2020/12.