From 0a23a5ab1a2f8f2e3a5898b01fe73d8aad79dabd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BChlbacher?= <tmuehlbacher@posteo.net> Date: Fri, 21 Mar 2025 16:33:57 +0000 Subject: [PATCH] feat(nix): open up support to more architectures This means that the flake can now be built for the following architectures: - aarch64-linux - armv6l-linux - armv7l-linux - i686-linux - powerpc64le-linux - riscv64-linux - x86_64-linux It doesn't mean that it's necessarily going to work perfectly on all of these architecture and binary cache support is not available for a lot of them either. But at least it let's you build for them if you want to. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> --- flake.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index d8836b87..9e09a621 100644 --- a/flake.nix +++ b/flake.nix @@ -34,16 +34,13 @@ crane, ... }: + let + systems = nixpkgs.lib.filter (s: nixpkgs.lib.hasSuffix "-linux" s) nixpkgs.lib.systems.flakeExposed; + in flake-parts.lib.mkFlake { inherit inputs; } { imports = [ inputs.treefmt-nix.flakeModule ]; - # can be extended, but these have proper binary cache support in nixpkgs - # as of writing. - systems = [ - "aarch64-linux" - "x86_64-linux" - "i686-linux" - ]; + inherit systems; perSystem = {