hadoop: Don't case-split on supported architectures

This commit is contained in:
Connor Baker
2022-02-14 08:20:37 -05:00
parent 737e30d3fe
commit 2bb25dbe7c
@@ -22,13 +22,7 @@ with lib;
let
common = { pname, version, untarDir ? "${pname}-${version}", sha256, jdk, openssl, nativeLibs ? [ ], libPatches ? "" }:
let
platformUrlSuffix =
if stdenv.isx86_64 && (stdenv.isLinux || stdenv.isDarwin)
then ""
else
if stdenv.isAarch64 && (stdenv.isLinux || stdenv.isDarwin)
then "-aarch64"
else throw "Hadoop does not currently support ${stdenv.system}.";
platformUrlSuffix = optionalString stdenv.isAarch64 "-aarch64";
in
stdenv.mkDerivation rec {
inherit pname version jdk libPatches untarDir openssl;