depot/third_party/nixpkgs/pkgs/by-name/gr/grafana-kiosk/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

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";
};
}