mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
grafana-kiosk: add wrapper to ensure chromium is available
This commit is contained in:
parent
662ae2a0cf
commit
9b35e6506d
1 changed files with 6 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue