@@ -23,13 +23,10 @@ assert elem stdenv.system [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarc
2323
2424let
2525 common = { pname, version, untarDir ? "${pname}-${version}", sha256, jdk, openssl ? null, nativeLibs ? [ ], libPatches ? "" }:
26− let
27− platformUrlSuffix = optionalString stdenv.isAarch64 "-aarch64";
28− in
2926 stdenv.mkDerivation rec {
3027 inherit pname version jdk libPatches untarDir openssl;
3128 src = fetchurl {
32− url = "mirror://apache/hadoop/common/hadoop-${version}/hadoop-${version}${platformUrlSuffix}.tar.gz";
29+ url = "mirror://apache/hadoop/common/hadoop-${version}/hadoop-${version}" + optionalString stdenv.isAarch64 "-aarch64" + ".tar.gz";
3330 sha256 = sha256.${stdenv.system};
3431 };
3532 doCheck = true;
@@ -69,9 +66,8 @@ let
6966 computers, each of which may be prone to failures.
7067 '';
7168 maintainers = with maintainers; [ volth illustris ];
72− platforms = builtins.attrNames sha256;
69+ platforms = attrNames sha256;
7370 };
74−
7571 };
7672in
7773{
@@ -104,9 +100,7 @@ in
104100 hadoop_3_2 = common rec {
105101 pname = "hadoop";
106102 version = "3.2.2";
107− sha256 = {
108− x86_64-linux = "1hxq297cqvkfgz2yfdiwa3l28g44i2abv5921k2d6b4pqd33prwp";
109− };
103+ sha256.x86_64-linux = "1hxq297cqvkfgz2yfdiwa3l28g44i2abv5921k2d6b4pqd33prwp";
110104 jdk = jdk8_headless;
111105 # not using native libs because of broken openssl_1_0_2 dependency
112106 # can be manually overriden
@@ -114,9 +108,7 @@ in
114108 hadoop2 = common rec {
115109 pname = "hadoop";
116110 version = "2.10.1";
117− sha256 = {
118− x86_64-linux = "1w31x4bk9f2swnx8qxx0cgwfg8vbpm6cy5lvfnbbpl3rsjhmyg97";
119− };
111+ sha256.x86_64-linux = "1w31x4bk9f2swnx8qxx0cgwfg8vbpm6cy5lvfnbbpl3rsjhmyg97";
120112 jdk = jdk8_headless;
121113 };
122114}