hadoop: fix failing evaluation on platforms other than x86_64-linux

This commit is contained in:
illustris 2022-07-13 18:17:10 +05:30
parent 0c65eb9baa
commit 01ba1ceb0e

View File

@ -29,7 +29,7 @@ let
common = { pname, versions, untarDir ? "${pname}-${version}", hash, jdk, openssl ? null, nativeLibs ? [ ], libPatches ? "", tests }:
stdenv.mkDerivation rec {
inherit pname jdk libPatches untarDir openssl;
version = versions.${stdenv.system};
version = versions.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
src = fetchurl {
url = "mirror://apache/hadoop/common/hadoop-${version}/hadoop-${version}" + optionalString stdenv.isAarch64 "-aarch64" + ".tar.gz";
hash = hash.${stdenv.system};