forked from alexbakker/alertmanager-ntfy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
38 lines (35 loc) · 1018 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
description = "Nix flake for alertmanager-ntfy";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in rec {
packages = flake-utils.lib.flattenTree rec {
default = alertmanager-ntfy;
alertmanager-ntfy = with pkgs; buildGoModule rec {
name = "alertmanager-ntfy";
src = self;
vendorSha256 = "sha256-e1JAoDNm2+xB/bZcEGr5l4+va8GIg1R8pdj3d+/Y+UY=";
};
};
devShells.default = with pkgs; mkShell {
buildInputs = [
go
];
};
nixosModules.default = ({ pkgs, ... }: {
imports = [ ./module.nix ];
nixpkgs.overlays = [
(_self: _super: {
alertmanager-ntfy = self.packages.${pkgs.system}.alertmanager-ntfy;
})
];
});
}
);
}