5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
28 lines
783 B
Nix
28 lines
783 B
Nix
{ lib, buildGoModule, fetchFromGitHub, chromium, makeWrapper }:
|
|
|
|
buildGoModule rec {
|
|
pname = "grafana-kiosk";
|
|
version = "1.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "grafana";
|
|
repo = "grafana-kiosk";
|
|
rev = "v${version}";
|
|
hash = "sha256-KXEbhRFD++VeVI1Fbrai+IYb3lyGKs+plYPoKIZD0JM=";
|
|
};
|
|
|
|
vendorHash = "sha256-sXaxyPNuHDUOkYcWYm94YvJmr1mGe4HdzttWrNSK2Pw=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
postFixup = ''
|
|
wrapProgram $out/bin/grafana-kiosk --prefix PATH : ${lib.makeBinPath [ chromium ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Kiosk Utility for Grafana";
|
|
homepage = "https://github.com/grafana/grafana-kiosk";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ marcusramberg ];
|
|
mainProgram = "grafana-kiosk";
|
|
};
|
|
}
|