anchor.diff:    hadoop_3_2 = common rec {
       pname = "hadoop";
       version = "3.2.2";
  -    sha256 = {
  -      x86_64-linux = "1hxq297cqvkfgz2yfdiwa3l28g44i2abv5921k2d6b4pqd33prwp";
  -    };
  +    sha256.x86_64-linux = "1hxq297cqvkfgz2yfdiwa3l28g44i2abv5921k2d6b4pqd33prwp";
       jdk = jdk8_headless;
       # not using native libs because of broken openssl_1_0_2 dependency
       # can be manually overriden
  
positive.code:   hadoop2 = common rec {
      pname = "hadoop";
      version = "2.10.1";
      sha256 = {
        x86_64-linux = "1w31x4bk9f2swnx8qxx0cgwfg8vbpm6cy5lvfnbbpl3rsjhmyg97";
      };
      jdk = jdk8_headless;
    };
  }
  
negative.code: 
  let
    common = { pname, version, untarDir ? "${pname}-${version}", sha256, jdk, openssl ? null, nativeLibs ? [ ], libPatches ? "" }:
      stdenv.mkDerivation rec {
        inherit pname version jdk libPatches untarDir openssl;
        src = fetchurl {
          url = "mirror://apache/hadoop/common/hadoop-${version}/hadoop-${version}" + optionalString stdenv.isAarch64 "-aarch64" + ".tar.gz";
          sha256 = sha256.${stdenv.system};
        };
        doCheck = true;
  