flake: check package builds

This commit is contained in:
Jake Hillion 2024-04-29 21:44:06 +01:00
parent 3c6091106f
commit 86e202aff0

View File

@ -11,7 +11,10 @@
};
outputs = { self, nixpkgs, flake-utils, treefmt-nix, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
(flake-utils.lib.eachSystem
(with flake-utils.lib.system; [ x86_64-linux aarch64-darwin ])
(system: { checks.builds = self.packages.$${system}.default; })
// flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.$${system};
@ -30,5 +33,5 @@
};
formatter = treefmtEval.config.build.wrapper;
});
}));
}