Merge pull request #181360 from illustris/hadoop-fix-blocker

hadoop: fix failing evaluation on platforms other than x86_64-linux
This commit is contained in:
Rick van Schijndel 2022-07-13 23:51:21 +02:00 committed by GitHub
commit 4d00ba8c74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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