Unverified Commit 614d4b0a authored by Stig's avatar Stig Committed by GitHub
Browse files

Merge pull request #308872 from marcusramberg/marcus/grafana-kiosk

grafana-kiosk: add wrapper to ensure chromium is available
parents a9883927 9b35e650
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, chromium, makeWrapper }:

buildGoModule rec {
  pname = "grafana-kiosk";
@@ -13,6 +13,11 @@ buildGoModule rec {

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