2024-01-12 00:02:07 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
recurseIntoAttrs,
|
2021-03-09 18:04:03 +00:00
|
|
|
|
2024-01-12 00:02:07 +00:00
|
|
|
cudaPackages,
|
2021-03-12 20:06:09 +00:00
|
|
|
|
2024-01-12 00:02:07 +00:00
|
|
|
cudaPackages_10_0,
|
|
|
|
cudaPackages_10_1,
|
|
|
|
cudaPackages_10_2,
|
|
|
|
cudaPackages_10,
|
2023-11-23 00:46:36 +00:00
|
|
|
|
2024-01-12 00:02:07 +00:00
|
|
|
cudaPackages_11_0,
|
|
|
|
cudaPackages_11_1,
|
|
|
|
cudaPackages_11_2,
|
|
|
|
cudaPackages_11_3,
|
|
|
|
cudaPackages_11_4,
|
|
|
|
cudaPackages_11_5,
|
|
|
|
cudaPackages_11_6,
|
|
|
|
cudaPackages_11_7,
|
|
|
|
cudaPackages_11_8,
|
|
|
|
cudaPackages_11,
|
|
|
|
|
|
|
|
cudaPackages_12_0,
|
|
|
|
cudaPackages_12_1,
|
|
|
|
cudaPackages_12_2,
|
|
|
|
cudaPackages_12_3,
|
|
|
|
cudaPackages_12,
|
|
|
|
}@args:
|
|
|
|
|
|
|
|
let
|
|
|
|
isTest =
|
|
|
|
name: package:
|
|
|
|
builtins.elem (package.pname or null) [
|
|
|
|
"cuda-samples"
|
|
|
|
"cuda-library-samples"
|
|
|
|
"saxpy"
|
|
|
|
];
|
|
|
|
in
|
|
|
|
(lib.trivial.pipe args [
|
|
|
|
(lib.filterAttrs (name: _: lib.hasPrefix "cudaPackages" name))
|
|
|
|
(lib.mapAttrs (
|
|
|
|
_: ps:
|
|
|
|
lib.pipe ps [
|
|
|
|
(lib.filterAttrs isTest)
|
|
|
|
recurseIntoAttrs
|
|
|
|
]
|
|
|
|
))
|
|
|
|
recurseIntoAttrs
|
|
|
|
])
|