2023-08-31 16:26:06 +00:00
|
|
|
{
|
|
|
|
description = "Bridge for various implementations to publish to ntfy.";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs @ {flake-parts, ...}:
|
|
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
|
|
imports = [
|
|
|
|
inputs.treefmt-nix.flakeModule
|
|
|
|
];
|
|
|
|
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
|
|
|
|
perSystem = {
|
|
|
|
config,
|
|
|
|
self',
|
|
|
|
inputs',
|
|
|
|
pkgs,
|
|
|
|
system,
|
|
|
|
...
|
|
|
|
}: {
|
2023-09-01 15:53:59 +00:00
|
|
|
_module.args.pkgs = import inputs.nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [
|
|
|
|
(final: prev: {
|
|
|
|
go = prev.go_1_21;
|
|
|
|
gopls = prev.gopls.override {buildGoModule = prev.buildGo121Module;};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
config = {};
|
|
|
|
};
|
|
|
|
|
2023-08-31 16:26:06 +00:00
|
|
|
treefmt = {
|
|
|
|
projectRootFile = ".git/config";
|
|
|
|
programs = {
|
|
|
|
alejandra.enable = true;
|
|
|
|
gofumpt.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
devShells.default =
|
2023-09-01 17:13:50 +00:00
|
|
|
pkgs.mkShell {buildInputs = with pkgs; [go gopls goreleaser];};
|
2023-08-31 16:26:06 +00:00
|
|
|
};
|
|
|
|
flake = {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|