about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSusan Potter2016-10-01 14:45:22 -0500
committerGraham Christensen2016-10-01 22:37:10 -0400
commitf22817d8d2bc17d2bcdb8ac4308a4bce6f5d1d2b (patch)
treee1a0fb4c11df38d487062f7ec6517c9bb8ae87ed
parentca6dbe9ed69b02c99ecdd811cdd4a19681374964 (diff)
kibana: fix 4.6.0 for i686 16.09
(cherry picked from commit c3e57f3095d3c5e4631a5978702226ee2b6bd8cd)
-rw-r--r--pkgs/development/tools/misc/kibana/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/kibana/default.nix b/pkgs/development/tools/misc/kibana/default.nix
index d851741405ff..677ffa49c998 100644
--- a/pkgs/development/tools/misc/kibana/default.nix
+++ b/pkgs/development/tools/misc/kibana/default.nix
@@ -3,8 +3,12 @@
 with stdenv.lib;
 let
   inherit (builtins) elemAt;
+  archOverrides = {
+    "i686" = "x86";
+  };
   info = splitString "-" stdenv.system;
-  arch = elemAt info 0;
+  arch = (elemAt info 0);
+  elasticArch = archOverrides."${arch}" or arch;
   plat = elemAt info 1;
   shas = {
     "x86_64-linux"  = "1md3y3a8rxvf37lnfc56kbirv2rjl68pa5672yxhfmjngrr20rcw";
@@ -16,7 +20,7 @@ in stdenv.mkDerivation rec {
   version = "4.6.0";
 
   src = fetchurl {
-    url = "https://download.elastic.co/kibana/kibana/${name}-${plat}-${arch}.tar.gz";
+    url = "https://download.elastic.co/kibana/kibana/${name}-${plat}-${elasticArch}.tar.gz";
     sha256 = shas."${stdenv.system}";
   };