2024-07-08 05:58:57 +00:00
|
|
|
{
|
|
|
|
outputs =
|
|
|
|
{ self, nixpkgs, ... }:
|
|
|
|
let
|
|
|
|
supportedSystems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-linux"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
|
|
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
|
|
|
system = "x86_64-linux";
|
|
|
|
in
|
|
|
|
{
|
2024-07-29 15:59:12 +00:00
|
|
|
lib = forAllSystems (system: import ./lib.nix { pkgs = nixpkgsFor.${system}; });
|
|
|
|
|
2024-07-08 05:58:57 +00:00
|
|
|
bundlers = forAllSystems (
|
|
|
|
system:
|
|
|
|
let
|
2024-07-29 15:59:12 +00:00
|
|
|
inherit (self.lib.${system}) allMaintainers expandInput noMaintainers;
|
2024-07-08 05:58:57 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
default = self.bundlers.${system}.unmaintained;
|
|
|
|
all = drv: allMaintainers (expandInput drv);
|
|
|
|
unmaintained = drv: noMaintainers (expandInput drv);
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
formatter = forAllSystems (system: nixpkgsFor.${system}.nixfmt-rfc-style);
|
2024-07-29 15:59:12 +00:00
|
|
|
|
|
|
|
checks = forAllSystems (
|
|
|
|
system:
|
|
|
|
import ./checks.nix {
|
|
|
|
inherit self;
|
|
|
|
inherit (nixpkgs.lib) nixosSystem;
|
|
|
|
pkgs = nixpkgsFor.${system};
|
|
|
|
}
|
|
|
|
);
|
2024-07-08 05:58:57 +00:00
|
|
|
};
|
|
|
|
}
|