aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/tools/phantomjs2
diff options
context:
space:
mode:
authorLuke Adams <luke.adams@belljar.io>2018-01-19 23:49:49 -0600
committerLuke Adams <luke.adams@belljar.io>2018-01-19 23:52:53 -0600
commit457bf6da585eb7cb0291a33c00dc4736c8e49e8d (patch)
tree80fe2509e453426541ad203f77d858090166fbbb /pkgs/development/tools/phantomjs2
parentdf925d6b7beba616d86359faf403e5c3fc75b9e7 (diff)
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
Diffstat (limited to 'pkgs/development/tools/phantomjs2')
-rw-r--r--pkgs/development/tools/phantomjs2/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/tools/phantomjs2/default.nix b/pkgs/development/tools/phantomjs2/default.nix
index f7d22395a03..3c062dbe1ab 100644
--- a/pkgs/development/tools/phantomjs2/default.nix
+++ b/pkgs/development/tools/phantomjs2/default.nix
@@ -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 ]}
'';