Merge pull request #80666 from netixx/grafana-phantomhs2-optional
grafana: made phantomjs2 optional
This commit is contained in:
commit
e661d071f5
@ -59,7 +59,18 @@
|
|||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para />
|
<para>
|
||||||
|
Grafana is now built without support for phantomjs by default. Phantomjs support has been
|
||||||
|
<link xlink:href="https://grafana.com/docs/grafana/latest/guides/whats-new-in-v6-4/">deprecated in Grafana</link>
|
||||||
|
and the <package>phantomjs</package> project is
|
||||||
|
<link xlink:href="https://github.com/ariya/phantomjs/issues/15344#issue-302015362">currently unmaintained</link>.
|
||||||
|
It can still be enabled by providing <literal>phantomJsSupport = true</literal> to the package instanciation:
|
||||||
|
<programlisting>{
|
||||||
|
services.grafana.package = pkgs.grafana.overrideAttrs (oldAttrs: rec {
|
||||||
|
phantomJsSupport = false;
|
||||||
|
});
|
||||||
|
}</programlisting>
|
||||||
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoPackage, fetchurl, fetchFromGitHub, phantomjs2 }:
|
{ lib, buildGoPackage, fetchurl, fetchFromGitHub, phantomJsSupport ? false, phantomjs2 ? null }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "grafana";
|
pname = "grafana";
|
||||||
@ -31,6 +31,7 @@ buildGoPackage rec {
|
|||||||
tar -xvf $srcStatic
|
tar -xvf $srcStatic
|
||||||
mkdir -p $bin/share/grafana
|
mkdir -p $bin/share/grafana
|
||||||
mv grafana-*/{public,conf,tools} $bin/share/grafana/
|
mv grafana-*/{public,conf,tools} $bin/share/grafana/
|
||||||
|
'' + lib.optionalString phantomJsSupport ''
|
||||||
ln -sf ${phantomjs2}/bin/phantomjs $bin/share/grafana/tools/phantomjs/phantomjs
|
ln -sf ${phantomjs2}/bin/phantomjs $bin/share/grafana/tools/phantomjs/phantomjs
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user