Skip to content

Commit

Permalink
release-cuda: refine the allowUnfreePredicate
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneSerge committed Jul 4, 2024
1 parent a11b15b commit 015d2ea
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pkgs/top-level/release-cuda.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@
$ hydra-eval-jobs pkgs/top-level/release-cuda.nix -I .
*/

let
ensureList = x: if builtins.isList x then x else [ x ];
allowUnfreePredicate =
p:
builtins.all (
license:
license.free
|| license.redistributable
|| builtins.elem license.shortName [
"CUDA EULA"
"cuDNN EULA"
"NVidia OptiX EULA"
]
) (ensureList p.meta.license);
in

{
# The platforms for which we build Nixpkgs.
supportedSystems ? [
Expand All @@ -22,8 +38,8 @@
# Attributes passed to nixpkgs.
nixpkgsArgs ? {
config = {
inherit allowUnfreePredicate;
"${variant}Support" = true;
allowUnfree = true;
inHydra = true;
};
},
Expand Down

0 comments on commit 015d2ea

Please sign in to comment.