2023-01-25 17:50:36 +00:00
|
|
|
{
|
2023-08-05 21:53:17 +00:00
|
|
|
description = "isle provides the foundation for an autonomous community cloud infrastructure";
|
2023-01-25 17:50:36 +00:00
|
|
|
|
|
|
|
outputs = {
|
2023-03-25 15:18:52 +00:00
|
|
|
self,
|
2023-01-25 17:50:36 +00:00
|
|
|
}: let
|
|
|
|
|
2023-03-25 14:58:20 +00:00
|
|
|
supportedSystems = (import ./nix/pkgs.nix).supportedSystems;
|
2023-01-25 17:50:36 +00:00
|
|
|
|
2023-01-29 17:57:55 +00:00
|
|
|
mkPkg = (buildSystem: hostSystem: let
|
|
|
|
|
|
|
|
defaultAttrs = (import ./default.nix) {
|
2023-02-15 12:56:22 +00:00
|
|
|
inherit hostSystem buildSystem;
|
2023-02-15 13:58:47 +00:00
|
|
|
revision = if self ? rev then self.rev else "dirty";
|
2023-02-14 19:46:28 +00:00
|
|
|
releaseName = "flake";
|
2023-01-29 17:57:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
2023-01-29 18:08:16 +00:00
|
|
|
defaultAttrs.appImage
|
2023-01-29 17:57:55 +00:00
|
|
|
);
|
|
|
|
|
2023-08-05 21:53:17 +00:00
|
|
|
pkgsForBuildSystem = (buildSystem: {
|
2023-03-25 14:58:20 +00:00
|
|
|
default = mkPkg buildSystem buildSystem;
|
|
|
|
});
|
2023-01-25 17:50:36 +00:00
|
|
|
|
|
|
|
in {
|
|
|
|
|
2023-01-29 17:57:55 +00:00
|
|
|
packages = (builtins.foldl'
|
|
|
|
(pkgs: buildSystem:
|
|
|
|
pkgs // { "${buildSystem}" = pkgsForBuildSystem buildSystem; })
|
|
|
|
{}
|
|
|
|
supportedSystems
|
|
|
|
);
|
2023-01-25 17:50:36 +00:00
|
|
|
|
2023-01-29 17:57:55 +00:00
|
|
|
};
|
2023-01-25 17:50:36 +00:00
|
|
|
}
|