kibana: fix 4.6.0 for i686

(cherry picked from commit c3e57f3095)
This commit is contained in:
Susan Potter 2016-10-01 14:45:22 -05:00 committed by Graham Christensen
parent ca6dbe9ed6
commit f22817d8d2
No known key found for this signature in database
GPG Key ID: FE918C3A98C1030F

View File

@ -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}";
};