Skip to content

Commit

Permalink
retroarch-free: init
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Nov 23, 2024
1 parent 87b438a commit 7485cd8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1458,10 +1458,24 @@ with pkgs;

retroarch = retroarch-bare.wrapper { };

# includes only cores for platform with free licenses
retroarch-free = retroarch.withCores (
cores:
builtins.filter
(c:
(c ? libretroCore)
&& (lib.meta.availableOn stdenv.hostPlatform c)
&& (!c.meta.unfree))
(builtins.attrValues cores)
);

# includes all cores for platform (including ones with non-free licenses)
retroarch-full = retroarch.withCores (
cores:
builtins.filter
(c: (c ? libretroCore) && (lib.meta.availableOn stdenv.hostPlatform c))
(c:
(c ? libretroCore)
&& (lib.meta.availableOn stdenv.hostPlatform c))
(builtins.attrValues cores)
);

Expand Down

0 comments on commit 7485cd8

Please sign in to comment.