2023-01-25 17:50:36 +00:00
|
|
|
{
|
|
|
|
|
2023-01-29 14:31:11 +00:00
|
|
|
inputs.pkgsSrc.url = "nixpkgs/nixos-22.11";
|
2023-01-25 17:50:36 +00:00
|
|
|
|
|
|
|
inputs.utils.url = "github:numtide/flake-utils";
|
|
|
|
|
|
|
|
# v0.8.1
|
|
|
|
inputs.garage.url = "git+https://git.deuxfleurs.fr/Deuxfleurs/garage.git?ref=main&rev=76230f20282e73a5a5afa33af68152acaf732cf5";
|
|
|
|
|
|
|
|
description = "cryptic-net provides the foundation for an autonomous community
|
|
|
|
cloud infrastructure";
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
|
|
|
|
self, pkgsSrc, utils, garage,
|
|
|
|
|
|
|
|
}: let
|
|
|
|
|
|
|
|
supportedSystems = [
|
|
|
|
"x86_64-linux"
|
2023-01-29 14:31:11 +00:00
|
|
|
"aarch64-linux"
|
|
|
|
"armv7l-linux" # rpi, I think?
|
|
|
|
"i686-linux"
|
2023-01-25 17:50:36 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
in utils.lib.eachSystem supportedSystems (system: let
|
|
|
|
|
|
|
|
pkgs = import pkgsSrc {
|
|
|
|
inherit system;
|
|
|
|
|
|
|
|
#crossSystem = {
|
|
|
|
# config = system;
|
|
|
|
#};
|
|
|
|
|
|
|
|
overlays = [
|
2023-01-29 14:31:11 +00:00
|
|
|
(import ./nix/overlays/go.nix)
|
2023-01-25 17:50:36 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
defaultAttrs = (import ./default.nix) {
|
|
|
|
inherit pkgs;
|
|
|
|
hostSystem = system;
|
|
|
|
#buildSystem = self.system;
|
|
|
|
garage = garage.packages."${system}".default;
|
|
|
|
selfRev = if self ? rev then self.rev else "UNKNOWN";
|
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
defaultPackage = defaultAttrs.appImage;
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|