aboutsummaryrefslogtreecommitdiffstats
{
  inputs = {
    nixpkgs.url = "nixpkgs/nixos-24.11";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils, ... }@inputs:
    {
      nixosModules = rec {
        icalproxy = import ./module self;
        default = icalproxy;
      };
    } // flake-utils.lib.eachDefaultSystem
      (system:
        let
          pkgs = import nixpkgs {
            inherit system;
            overlays = [ ];
          };

          icalproxy = pkgs.buildGoModule {
            name = "icalproxy";
            src = ./.;
            vendorHash = "sha256-l/PQPEZC99umlSr6PBn/dXn2mZN4qf8YMBE8ENOm97I=";
          };
        in
        {
          packages.icalproxy = icalproxy;
          packages.default = self.packages.${system}.icalproxy;

          devShells.default = pkgs.mkShell {
            inputsFrom = [ icalproxy ];
          };

          formatter = pkgs.nixpkgs-fmt;
        });
}