grafana-kiosk: add wrapper to ensure chromium is available

This commit is contained in:
Marcus Ramberg 2024-05-03 21:14:56 +02:00
parent 662ae2a0cf
commit 9b35e6506d

View file

@ -1,4 +1,4 @@
{ 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";