release-cuda: allow passing system to release-lib

This commit is contained in:
SomeoneSerge 2024-08-15 12:07:48 +00:00
parent b5c2e5aee6
commit 40dc65f56d

View File

@ -43,7 +43,8 @@ in
inHydra = true;
};
},
}:
...
}@args:
assert builtins.elem variant [
"cuda"
@ -52,7 +53,9 @@ assert builtins.elem variant [
];
let
release-lib = import ./release-lib.nix { inherit supportedSystems nixpkgsArgs; };
release-lib = import ./release-lib.nix (
{ inherit supportedSystems nixpkgsArgs; } // builtins.removeAttrs args [ "variant" ]
);
inherit (release-lib) lib;
inherit (release-lib)