@@ -4,13 +4,14 @@
44, makeWrapper
55, fetchzip
66, fetchurl
7−, nodejs
7+, nodejs-10_x
88, coreutils
99, which
1010}:
1111
1212with stdenv.lib;
1313let
14+ nodejs = nodejs-10_x;
1415 inherit (builtins) elemAt;
1516 info = splitString "-" stdenv.hostPlatform.system;
1617 arch = elemAt info 0;
@@ -18,26 +19,14 @@ let
1819 shas =
1920 if enableUnfree
2021 then {
21− "x86_64-linux" = "0lip4bj3jazv83gydw99dnp03cb0fd1p4z3lvpjbisgmqffbbg5v";
22− "x86_64-darwin" = "0hjdnqagcwbjhpcfyr6w0zmy4sjnx4fyp79czb0vp7dig5arnwm3";
22+ "x86_64-linux" = "039ll00kvrp881cyybb04z90cw68j7p5cspgdxh0bky9lyi9qpwb";
23+ "x86_64-darwin" = "0qrakrihcjwn9dic77b0k9ja3zf6nbz534v76xid9gv20md5dds3";
2324 }
2425 else {
25− "x86_64-linux" = "1jybn4q7pz61iijzl85d948szlacfcbldn2nhhsb6063xwvf30sa";
26− "x86_64-darwin" = "1bl1h6hgp9l5cjq6pzj2x855wjaka8hbs0fn2c03lbzsc991dppr";
26+ "x86_64-linux" = "1v1fbmfkbnlx043z3yx02gaqqy63bj2ymvcby66n4qq0vlpahvwx";
27+ "x86_64-darwin" = "1y4q7a2b9arln94d6sj547qkv3258jlgcz9b342fh6khlbpfjb8c";
2728 };
2829
29− # For the correct phantomjs version see:
30− # https://github.com/elastic/kibana/blob/master/x-pack/plugins/reporting/server/browsers/phantom/paths.js
31− phantomjs = rec {
32− name = "phantomjs-${version}-linux-x86_64";
33− version = "2.1.1";
34− src = fetchzip {
35− inherit name;
36− url = "https://github.com/Medium/phantomjs/releases/download/v${version}/${name}.tar.bz2";
37− sha256 = "0g2dqjzr2daz6rkd6shj6rrlw55z4167vqh7bxadl8jl6jk7zbfv";
38− };
39− };
40−
4130in stdenv.mkDerivation rec {
4231 name = "kibana-${optionalString (!enableUnfree) "oss-"}${version}";
4332 version = elk6Version;
@@ -48,7 +37,7 @@ in stdenv.mkDerivation rec {
4837 };
4938
5039 patches = [
51− # Kibana specifies it specifically needs nodejs 8.11.4 but nodejs in nixpkgs is at 8.12.0.
40+ # Kibana specifies it specifically needs nodejs 10.15.2 but nodejs in nixpkgs is at 10.15.3.
5241 # The <nixpkgs/nixos/tests/elk.nix> test succeeds with this newer version so lets just
5342 # disable the version check.
5443 ./disable-nodejs-version-check.patch
@@ -63,13 +52,6 @@ in stdenv.mkDerivation rec {
6352 makeWrapper $out/libexec/kibana/bin/kibana $out/bin/kibana \
6453 --prefix PATH : "${stdenv.lib.makeBinPath [ nodejs coreutils which ]}"
6554 sed -i 's@NODE=.*@NODE=${nodejs}/bin/node@' $out/libexec/kibana/bin/kibana
66− '' +
67− # phantomjs is needed in the unfree version. When phantomjs doesn't exist in
68− # $out/libexec/kibana/data kibana will try to download and unpack it during
69− # runtime which will fail because the nix store is read-only. So we make sure
70− # it already exist in the nix store.
71− optionalString enableUnfree ''
72− ln -s ${phantomjs.src} $out/libexec/kibana/data/${phantomjs.name}
7355 '';
7456
7557 meta = {