-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathflake.nix
More file actions
38 lines (35 loc) · 1016 Bytes
/
Copy pathflake.nix
File metadata and controls
38 lines (35 loc) · 1016 Bytes
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;
vendorHash = "sha256-++jIi53fckPkU4ZVgR2DkSfHZlA39w5jx4TfAlcsKIM=";
};
};
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;
})
];
});
}
);
}