isle/flake.nix

37 lines
762 B
Nix
Raw Permalink Normal View History

{
description = "isle provides the foundation for an autonomous community cloud infrastructure";
outputs = {
self,
}: let
2023-03-25 14:58:20 +00:00
supportedSystems = (import ./nix/pkgs.nix).supportedSystems;
mkPkg = (buildSystem: hostSystem: let
defaultAttrs = (import ./default.nix) {
inherit hostSystem buildSystem;
2023-02-15 13:58:47 +00:00
revision = if self ? rev then self.rev else "dirty";
releaseName = "flake";
};
in
defaultAttrs.build.appImage
);
pkgsForBuildSystem = (buildSystem: {
2023-03-25 14:58:20 +00:00
default = mkPkg buildSystem buildSystem;
});
in {
packages = (builtins.foldl'
(pkgs: buildSystem:
pkgs // { "${buildSystem}" = pkgsForBuildSystem buildSystem; })
{}
supportedSystems
);
};
}