From 7010ba25f48103f0779dd9b9fb90387818dc70fc Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 12 Apr 2022 10:43:54 +0200 Subject: [PATCH] flake: only use subset of systems Turns out pre-commit pulls dotnet in its closure, which is not supported on i686... --- flake.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 3b8c722..d1e5d49 100644 --- a/flake.nix +++ b/flake.nix @@ -65,7 +65,16 @@ , pre-commit-hooks }: let - inherit (futils.lib) eachDefaultSystem; + inherit (futils.lib) eachSystem system; + + mySystems = [ + system.aarch64-darwin + system.aarch64-linux + system.x86_64-darwin + system.x86_64-linux + ]; + + eachMySystem = eachSystem mySystems; lib = nixpkgs.lib.extend (self: super: { my = import ./lib { inherit inputs; pkgs = nixpkgs; lib = self; }; @@ -100,7 +109,7 @@ }; }; in - eachDefaultSystem + eachMySystem (system: let pkgs = nixpkgs.legacyPackages.${system};