terraform-provider-garage/flake.nix

53 lines
1.2 KiB
Nix
Raw Permalink Normal View History

{
description = "Terraform provider for Garage";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
futils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, futils } @ inputs:
let
inherit (nixpkgs) lib;
inherit (lib) recursiveUpdate;
inherit (futils.lib) eachDefaultSystem defaultSystems;
nixpkgsFor = lib.genAttrs defaultSystems (system: import nixpkgs {
inherit system;
overlays = [ self.overlay ];
});
anySystemOutputs = {
overlay = final: prev: {
# TODO
};
};
multipleSystemsOutputs = eachDefaultSystem (system:
let
pkgs = nixpkgsFor.${system};
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
docker-compose
git
go
gotools
golint
goreleaser
nixpkgs-fmt
pre-commit
terraform
];
};
packages = {
# TODO
};
# defaultPackage = TODO;
});
in
recursiveUpdate multipleSystemsOutputs anySystemOutputs;
}