phantomjs2: set QT_QPA_PLATFORM to allow use in daemons

resolves issues with Grafana email attachments

Suggested in https://github.com/ariya/phantomjs/issues/15217#issuecomment-354713760
This commit is contained in:
Luke Adams 2018-01-19 23:49:49 -06:00
parent df925d6b7b
commit 457bf6da58

View File

@ -105,6 +105,7 @@ in stdenv.mkDerivation rec {
$out/bin/phantomjs
'' + ''
wrapProgram $out/bin/phantomjs \
--set QT_QPA_PLATFORM offscreen \
--prefix PATH : ${stdenv.lib.makeBinPath [ qtbase ]}
'';