Merge pull request #285360 from sternenseemann/cuda-eval-2.3

cudaPackage: don't rely on non-portable builtins
This commit is contained in:
Someone 2024-02-03 03:22:32 +00:00 committed by GitHub
commit c1ff0d6905
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,13 +83,13 @@ let
# perSystemReleases :: List Package
allReleases = lib.pipe releaseSets
[
(builtins.attrValues)
(lib.attrValues)
(lists.flatten)
(builtins.groupBy (p: lib.versions.majorMinor p.version))
(builtins.mapAttrs (_: builtins.sort preferable))
(builtins.mapAttrs (_: lib.take 1))
(builtins.attrValues)
(builtins.concatMap lib.trivial.id)
(lib.groupBy (p: lib.versions.majorMinor p.version))
(lib.mapAttrs (_: builtins.sort preferable))
(lib.mapAttrs (_: lib.take 1))
(lib.attrValues)
(lib.concatMap lib.trivial.id)
];
newest = builtins.head (builtins.sort preferable allReleases);