From c684aca330563ab475be4b52ce79c52c1236b22a Mon Sep 17 00:00:00 2001 From: Someone Serge Date: Wed, 28 Aug 2024 01:50:06 +0000 Subject: [PATCH] release-cuda: account for Hydra passing extra flags --- pkgs/top-level/release-cuda.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/release-cuda.nix b/pkgs/top-level/release-cuda.nix index 032820fd923c..f655114737e9 100644 --- a/pkgs/top-level/release-cuda.nix +++ b/pkgs/top-level/release-cuda.nix @@ -13,6 +13,7 @@ */ let + lib = import ../../lib; ensureList = x: if builtins.isList x then x else [ x ]; allowUnfreePredicate = p: @@ -53,11 +54,11 @@ assert builtins.elem variant [ ]; let - release-lib = import ./release-lib.nix ( - { inherit supportedSystems nixpkgsArgs; } // builtins.removeAttrs args [ "variant" ] + mkReleaseLib = import ./release-lib.nix; + release-lib = mkReleaseLib ( + { inherit supportedSystems nixpkgsArgs; } // lib.intersectAttrs (lib.functionArgs mkReleaseLib) args ); - inherit (release-lib) lib; inherit (release-lib) linux mapTestOn