git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit457bf6da585eb7cb0291a33c00dc4736c8e49e8d authorLuke Adams <luke.adams@belljar.io> dateFri 19 Jan 2018, 23:49 (9 years ago) parentdf925d6
1 file changed+1
pkgs/development/tools/phantomjs2/default.nix+1
pkgs/development/tools/phantomjs2/default.nix+1
@@ -105,6 +105,7 @@ in stdenv.mkDerivation rec {
105105 $out/bin/phantomjs
106106 '' + ''
107107 wrapProgram $out/bin/phantomjs \
108+ --set QT_QPA_PLATFORM offscreen \
108109 --prefix PATH : ${stdenv.lib.makeBinPath [ qtbase ]}
109110 '';
110111