From 83d131fd30a873123880b493b61b23c149f40e31 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Wed, 31 Jan 2024 21:32:25 +0100 Subject: [PATCH] cudaPackage: don't rely on non-portable builtins builtins.groupBy was added in Nix 2.5 (https://nixos.org/manual/nix/stable/release-notes/rl-2.5), but Nixpkgs has to support Nix >= 2.3. Problem introduced in 9a33f8ce5ba7329600b296996d944ec9ddaa7d38. --- .../cuda-modules/generic-builders/multiplex.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/cuda-modules/generic-builders/multiplex.nix b/pkgs/development/cuda-modules/generic-builders/multiplex.nix index abe8ad242a3a..f2a9c6840ecd 100644 --- a/pkgs/development/cuda-modules/generic-builders/multiplex.nix +++ b/pkgs/development/cuda-modules/generic-builders/multiplex.nix @@ -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);