Skip to content

Commit

Permalink
grafana-to-ntfy: init at 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeyemwey committed Oct 6, 2024
1 parent b62ab46 commit 27194d6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/by-name/gr/grafana-to-ntfy/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkgs,
...
}:
rustPlatform.buildRustPackage rec {
pname = "grafana-to-ntfy";
version = "0.1.0";

src = fetchFromGitHub {
owner = "kittyandrew";
repo = pname;
rev = "325337f4dc2fe44427262f063f2a594cc226f55f";
sha256 = "sha256-zEm06aq44IcUXIrm9Upovmifu4INpLjE3dMXahHppwk=";
};

cargoHash = "sha256-IdONQaAgUBeuz5GNnJ0fSFG6X686QJsT7AiGUrLztt0=";

nativeBuildInputs = lib.optionals (stdenv.isLinux) [ pkgs.pkg-config ];

buildInputs =
lib.optionals (stdenv.isLinux) [ pkgs.openssl ]
++ lib.optionals (stdenv.isDarwin) [ pkgs.darwin.apple_sdk.frameworks.Security ];

meta = {
description = "Bridge to bring Grafana Webhook alerts to ntfy.sh";
homepage = "https://github.com/kittyandrew/grafana-to-ntfy";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ jeyemwey ];
};
}

0 comments on commit 27194d6

Please sign in to comment.