nixpkgs/pkgs/by-name/gr/grafana-kiosk/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
872 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, chromium, makeWrapper }:
2024-04-30 08:23:32 +00:00
buildGoModule rec {
pname = "grafana-kiosk";
2024-05-31 14:24:56 +00:00
version = "1.0.7";
2024-04-30 08:23:32 +00:00
src = fetchFromGitHub {
owner = "grafana";
repo = "grafana-kiosk";
rev = "v${version}";
2024-05-31 14:24:56 +00:00
hash = "sha256-JTz3EaedJFWE3YqsBLjKH4hWI7+dNeMlp0sZ2kW8IR8=";
2024-04-30 08:23:32 +00:00
};
2024-05-31 14:24:56 +00:00
vendorHash = "sha256-8sxfbSj0Jq5f0oJoe8PtP72PDWvLzgOeRiP7I/Pfam4=";
2024-04-30 08:23:32 +00:00
nativeBuildInputs = [ makeWrapper ];
postFixup = ''
wrapProgram $out/bin/grafana-kiosk --prefix PATH : ${lib.makeBinPath [ chromium ]}
'';
2024-04-30 08:23:32 +00:00
meta = with lib; {
description = "Kiosk Utility for Grafana";
homepage = "https://github.com/grafana/grafana-kiosk";
2024-06-16 20:48:03 +00:00
changelog = "https://github.com/grafana/grafana-kiosk/blob/${src.rev}/CHANGELOG.md";
2024-04-30 08:23:32 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ marcusramberg ];
mainProgram = "grafana-kiosk";
};
}