Skip to content

Commit

Permalink
flake.nix: simplify forAllSystems function.
Browse files Browse the repository at this point in the history
Also has the side effect of supporting more systems.

Signed-off-by: Ethan Carter Edwards <[email protected]>
  • Loading branch information
ethancedwards8 committed Jan 30, 2025
1 parent 2630eab commit e68e8ee
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
let
systems = [
"x86_64-linux"
"i686-linux"
"x86_64-darwin"
"aarch64-linux"
"armv6l-linux"
"armv7l-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
in
{
legacyPackages = forAllSystems (system: import ./default.nix {
Expand Down

0 comments on commit e68e8ee

Please sign in to comment.